Advanced TCP Server Using the select( ) Function Troubles
Posted: Tue Nov 04, 2008 9:25 am
I am using the "Advanced TCP Server Using the select( ) Function" example in the Programming Guide exactly the way its shown in the pdf.
It does work just fine, but i would like to be able to send more then 20 chars to it.
this is listed in the example:
char buffer[20];
int rv = read( fd_array, buffer, 21 )
however, when i change this to
char buffer[80];
int rv = read( fd_array, buffer, 81 )
and then try to connect i allways get the "Server Full" message.
I cannot figure out how to make this accept more that 20 chars.
It does work just fine, but i would like to be able to send more then 20 chars to it.
this is listed in the example:
char buffer[20];
int rv = read( fd_array, buffer, 21 )
however, when i change this to
char buffer[80];
int rv = read( fd_array, buffer, 81 )
and then try to connect i allways get the "Server Full" message.
I cannot figure out how to make this accept more that 20 chars.