Lines Matching refs:socket
108 int socket; member
471 int socket = peerProxy->currentPacket->socket; in peerProxyWriteConnection() local
492 *((int *) CMSG_DATA(cmptr)) = peerProxy->currentPacket->socket; in peerProxyWriteConnection()
803 closeWithWarning(packet->socket); in outgoingPacketFreeSocket()
835 packetA->socket = sockets[0]; in masterConnectPeers()
836 packetB->socket = sockets[1]; in masterConnectPeers()
1027 int socket = accept(listenerFd->fd, NULL, NULL); in masterAcceptConnection() local
1028 if (socket == -1) { in masterAcceptConnection()
1033 LOGD("Accepted connection as fd %d.", socket); in masterAcceptConnection()
1039 int result = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, in masterAcceptConnection()
1044 closeWithWarning(socket); in masterAcceptConnection()
1065 closeWithWarning(socket); in masterAcceptConnection()
1070 SelectableFd* socketFd = selectorAdd(masterPeer->selector, socket); in masterAcceptConnection()
1074 closeWithWarning(socket); in masterAcceptConnection()
1084 closeWithWarning(socket); in masterAcceptConnection()
1262 int listenerSocket = socket(AF_LOCAL, SOCK_STREAM, 0); in masterPeerInitialize()
1313 int masterSocket = socket(AF_LOCAL, SOCK_STREAM, 0); in peerInitialize()