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.
%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.