Searched refs:sock (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libtksh/tcl/
H A DtclUnixChan.c52 Tcl_File sock; /* The socket itself. */ member in struct:TcpState
1477 int sock;
1481 sock = (int) Tcl_GetFileInfo(statePtr->sock, NULL);
1483 setting = fcntl(sock, F_GETFL, 0);
1491 if (fcntl(sock, F_SETFL, setting) < 0) {
1500 if (ioctl(sock, (int) FIONBIO, &setting) == -1) {
1506 if (ioctl(sock, (int) FIONBIO, &setting) == -1) {
1538 int sock; /* The socket itself. */
1555 state = TclWaitForFile(statePtr->sock, TCL_WRITABL
[all...]
/ast/src/lib/libcs/
H A Dcsbind.c81 int sock;
86 if (streq(type, "tcp")) sock = SOCK_STREAM;
87 else if (streq(type, "udp")) sock = SOCK_DGRAM;
93 if ((fd = socket(AF_INET, sock, 0)) < 0)
123 if (sock == SOCK_STREAM)
143 if (sock == SOCK_STREAM)
168 if (!bind(fd, (struct sockaddr*)&nam, sizeof(nam)) && (sock != SOCK_STREAM || !listen(fd, 32)))

Completed in 41 milliseconds