Home | History | Annotate | Download | only in gui

Lines Matching defs:sockets

71     int sockets[2];
72 if (socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets) == 0) {
74 setsockopt(sockets[0], SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf));
75 setsockopt(sockets[1], SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof(sndbuf));
77 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size));
78 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size));
79 fcntl(sockets[0], F_SETFL, O_NONBLOCK);
80 fcntl(sockets[1], F_SETFL, O_NONBLOCK);
81 mReceiveFd = sockets[0];
82 mSendFd = sockets[1];