A direct Socket connection. Of course you'll need to come up with some sort of application level protocol there, since otherwise you're just sending bytes from one place to another.
For example, you could have the first byte tell the type of the message, and the second byte (or short) the size of a payload. Then you could send messages up to 256 (or 65536) bytes to the server and pretty much do what you want.