I'm interested in writing a small piece of sample code that communications via standard TCP/IP means to an application server. The idea here is that the client can speak to the application server and be authenticated by simply speaking in a specific text based protocol. The traffic will be encrypted, no username/password. If another app tries to communicate with the app server and doesn't use the correct text based protocol, the app server will just silently discard packets.
Looking to get pointed in the right direction to get this done.