User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 397,812 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,541 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
Views: 1141 | Replies: 1
Reply
Join Date: Oct 2006
Posts: 1
Reputation: tilli is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tilli tilli is offline Offline
Newbie Poster

Help tcp client code

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: Canada
Posts: 4,459
Reputation: John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light John A is a glorious beacon of light 
Rep Power: 15
Solved Threads: 268
Moderator
Staff Writer
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: tcp client code

  #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.
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 6:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC