Lines Matching refs:socket
31 #include <sys/socket.h>
39 * This program creates a socket and initiates a connection with the socket
41 * then the socket is closed, ending the connection. The form of the command
54 /* Create socket */
55 sock = socket(AF_INET, SOCK_STREAM, 0);
57 perror("opening stream socket");
60 /* Connect socket using name specified by command line. */
71 perror("connecting stream socket");
75 perror("writing on stream socket");