954,190 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

tcp client code

hi,
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: ????

thanks

tilli
Newbie Poster
1 post since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

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
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You