Home Segments Index Top Previous Next

736: Mainline

Next, you need to provide information about the server by assigning appropriate structure variables inside the server_addr object; the required assignment statements are identical to those in the server program:

server_addr.sin_family = AF_INET; 
server_addr.sin_port = 6022; 
server_addr.sin_addr.s_addr = inet_addr ("128.52.36.4");