Re: tcp socket programming

2005-10-04 Thread Mohammed Smadi
On Tue, 4 Oct 2005, Irmen de Jong wrote: > Mohammed Smadi wrote: > > hi; > > If i have a tcp connection with a remote server, what is a good way to > > read all the data into a buffer before starting to process the data? > > I know that the data recieved will be 3 lines with CRLF between them.

Re: tcp socket programming

2005-10-04 Thread Irmen de Jong
Mohammed Smadi wrote: > hi; > If i have a tcp connection with a remote server, what is a good way to > read all the data into a buffer before starting to process the data? > I know that the data recieved will be 3 lines with CRLF between them. > However if I can sock.recv(1024) the output is not