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