Lines Matching defs:socket

68 #include <sys/socket.h>
555 WinSocket(SOCKET skt) : socket(skt) {}
558 return socket;
569 SOCKET socket;
579 if (ioctlsocket(socket, SIOCATMARK, &atMark) != 0)
588 if (bits & POLL_BIT_IN) FD_SET(socket, &readFds);
589 if (bits & POLL_BIT_OUT) FD_SET(socket, &writeFds);
596 if (FD_ISSET(socket, &readFds)) result |= POLL_BIT_IN;
597 if (FD_ISSET(socket, &writeFds)) result |= POLL_BIT_OUT;
724 // Get a socket option as an integer.
735 // Get and clear the error state for the socket. Returns a SysWord.word value.
798 /* Wrapper for "select" call. The arguments are arrays of socket ids. These arrays are
857 // Begin the connection. The socket is always non-blocking so this will return immediately.
885 // Return a pair of the new socket and the address.
1092 /* Return a list of known socket types. */
1114 // Create a socket */
1129 skt = socket(af, type, proto);
1133 raise_syscall(taskData, "socket failed", GETERROR);
1135 /* Set the socket to non-blocking mode. */
1268 case 33: /* Get socket type e.g. SOCK_STREAM. */
1375 /* Get socket name. */
1461 /* Bind an address to a socket. */
1483 /* Put socket into listening mode. */
1504 /* Shutdown the socket. */
1531 /* Create a socket pair. */
1583 /* Create a Unix socket address from a string. */
1617 /* Get the file name from a Unix socket address. */
1904 // This is defined to raise an exception if the socket has already been closed
1942 // Return internet address and port from an internet socket address.
1968 // Create a socket address from a port number and internet address.