I'm creating a vb.net client/server program which uses tcp sockets.
The socket.send command takes a byte array so i need to use Encoding.getbytes to convert strings for sending.
I want the server to be available for clients to use as an API so I want it to be as simple as possible, as if it was a telnet server which is very easy to connect to and communicate with.
I need to ensure the end users encode their strings correctly and that I can automatically decode them regardless of the encoding method that the client uses. What type of string encoding do telnet servers use?
Is there a better way of doing this?