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