Description: * use Select function with non blocking mode and multiple socket communication. The program is the use of demonstration of select function, even if a connection is closed will not modify the current number of connections, the number of connections after reaching the maximum value will terminate the program.
1 procedures for the use of an array of FD, communication after the start of the multiple socket descriptor communication in this array
2 first generate a call sock_fd socket descriptor, for listening port.
3 the sock_fd and array FD is not 0 descriptors in select will check the set fdsr.
4 fdsr can be connected to receive data. If sock_fd, indicates that there is a new connection to join, will join the new connection socket descriptor is placed into the fd.*
//select_server.c
To Search:
File list (Check if you may need any files):
IO (2).txt