First working version of TCPServer for iOS