Lines Matching refs:socket
31 * This program is made to perform all the socket/stream/connection stuff for
33 * this by its own, but I decided to let this program do the socket layer
93 #include <sys/socket.h>
414 if sockfd is CURL_SOCKET_BAD, listendfd is a listening socket we must
477 /* there's always a socket to wait for */
487 logmsg("socket is -1! on %s:%d", __FILE__, __LINE__);
491 /* there's always a socket to wait for */
506 logmsg("No socket to read on");
513 logmsg("disconnected, no socket to read on");
545 to the socket
614 /* send away on the socket */
654 *sockfdp = sockfd; /* store the new socket */
660 /* read from socket, pass on data to stdout */
761 logmsg("Error binding socket on port %hu: (%d) %s",
955 sock = socket(AF_INET, SOCK_STREAM, 0);
958 sock = socket(AF_INET6, SOCK_STREAM, 0);
963 logmsg("Error creating socket: (%d) %s",
1014 msgsock = CURL_SOCKET_BAD; /* no stream socket yet */