s = socket(AF_INET, SOCK_STREAM, 0);
For more information, see Allocating sockets in an iterative server program.