Hello I am using sockets in my application that consists of one server and one client. The client just sends one word (a keyword in fact) and the server replies with a lot of data. The problem is when this reply is > 255 char., the message is truncated. It does not occurs with the client of course but sometimes with the server. Its function to send data is:
So what's missing to allow the sending of more than 255 char. ?
thanks for your help !
2. Re: Sockets Message size > 255 characters
#2595
Posted by: 2003-09-04 00:15:46
I found why, it is because len is of type char and can therefore not be > 255.... But I don't understand, I think it was like that in the sockets sample, it's not so nice huh?