Possible Duplicate:
Is 0 or 1 valid return values for socket() function call
what is the range for FD(File Descriptor)?
For example :
int sockfd = socket(AF_INET, SOCK_STREAM, 0);
or
newsockfd = accept(sockfd, (struct sockaddr *) & cli_addr, (socklen_t *) & clilen);
what is the range sockfd , newsockfd ? Are these >=0 or >=1 ?