I use this code for reading from socket :
int n ;
char buffer[256];
n = read(newsockfd, buffer, 255);
if (n < 0)
{
error("ERROR reading from socket");
}
if the data that must be read bigger than 255 byte (for example 1000) which change must be occured ?
I know change char buffer[1000]
, I need different solution .