V.R.C.C. (Video Remote Computer Camera) is a freeware and open source system that enables your smartphone to be used as a Webcam and lets you control the smartphone from the PC.
WebLOQ IO is a Java NIO framework which allows for tens of thousands of concurrent TCP/IP connections through a very small thread pool (assuming proper OS and network settings). There is built in support for SSL and non-SSL connections.