Do you know how to do socket programming? Check out Beej's guide to internet sockets:
http://beej.us/guide/bgnet/
It's very well-written, so you will be able to understand it easily.
Once you understand how to open a socket and send packets, the rest is easy. Simply get the input from the user, and concatenate these strings into one, and then send the string in a packet to the server.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339