tcp client code

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2006
Posts: 1
Reputation: tilli is an unknown quantity at this point 
Solved Threads: 0
tilli tilli is offline Offline
Newbie Poster

tcp client code

 
0
  #1
Oct 31st, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: tcp client code

 
0
  #2
Oct 31st, 2006
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.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC