i have to write a tcp client code, that takes in input from the keyboard which should be in the form

num char num
33 AD 55 (AD being addition)

then transfer this in a string buffer to the server,

i dont know how to go about doing this, can any one help :rolleyes: ????


Do you know how to do socket programming? Check out Beej's guide to internet sockets:
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.