I want to write a program to access my Android phone's camera on my laptop wirelessly, so, my phone will act like a wireless webcam. I want to implement the UDP ( or TCP ) protocol in Java to communicate between my laptop and phone.
I was thinking of making an ad-hoc wireless network in my laptop and connecting my phone to it first, and then write the code to create a server socket on my laptop and client socket on my phone. I know this code will work for a "direct communication" between server and client. but will this method of ad-hoc network communication count as a "direct communication" ? If not, what do I do to achieve this ?
Thank you, firstly for reading my whole problem, and, thanks a lot if you can answer this for me
:)