944,101 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 5234
  • C RSS
Oct 31st, 2006
0

tcp client code

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tilli is offline Offline
1 posts
since Oct 2006
Oct 31st, 2006
0

Re: tcp client code

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.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: add function of a liked list class
Next Thread in C Forum Timeline: Using TObject *Sender





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC