Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

socket programming help...

Status
Not open for further replies.

huskers

Programmer
Jan 29, 2002
75
US
I have written a client-server process to send records from box A to B in C. The record is sent to B as follows:

%03d\0<pipe delimited record>\0

The first field is the length of the record and the second one is the actual pipe delimited string(The way to send the record can be changed).

There is a server on B which reads the records from the socket. The records can be varying length. I need help in reading the record based on the length from the socket. Can anyone tell me how I can do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top