Lines Matching refs:socket
17 #include <sys/socket.h>
66 * setup the socket used to handle incoming HTTP connections. */
77 if( (s = socket(PF_INET, SOCK_STREAM, 0)) < 0)
79 DPRINTF(E_ERROR, L_GENERAL, "socket(http): %s\n", strerror(errno));
837 DPRINTF(E_FATAL, L_GENERAL, "Failed to open socket for receiving SSDP. EXITING\n");
839 /* open socket for HTTP connections. Listen on the 1st LAN address */
843 DPRINTF(E_FATAL, L_GENERAL, "Failed to open socket for HTTP. EXITING\n");
847 /* open socket for sending notifications */
863 /* open socket for sending Tivo notifications */
987 if((e->socket >= 0) && (e->state <= 2))
989 FD_SET(e->socket, &readset);
990 max_fd = MAX( max_fd, e->socket);
1033 if( (e->socket >= 0) && (e->state <= 2)
1034 &&(FD_ISSET(e->socket, &readset)) )