Search code examples
socketsopen-source

Open Source Socket Server


I am writing an iOS app that communicates with a remote computer using a socket stream. I am looking for an open source socket server that runs on the host computer that will read the data, and send it onto the host operating system.

So I am wondering if there is an open source "socket server" that is available for Windows (and other OS's) that does this. The server would basically read the incoming data and then pass it onto the operating system to handle. For example, if I send the remote computer the keystrokes Control C, and I have Notepad open, then I expect the copy command to be executed on the host computer.

Ideally the user will be able to configure the host server and set the port number, username, and password for the connection.

Notes:

  • I don't want to use VNC as the server since it only supports a limited set of keystrokes
  • I have no experience programming in Windows or Unix/Linux, and so don't have the knowledge to program a server on my own.

Solution

  • I think I found what I was looking for in a networking library called Twisted. Twisted is an event-driven networking engine written in Python and licensed under the open source.

    http://twistedmatrix.com

    Looks like it is very easy to setup a networking server of any type using Twisted.