Lines Matching refs:serverSocket
51 serverSocket = -1;
61 if (serverSocket != -1)
62 shutdown(serverSocket,SHUT_RDWR);
63 serverSocket = -1;
71 if ( serverSocket==nil ) {
72 serverSocket = new ServerSocket(port);
73 socket = serverSocket.accept();
124 if (serverSocket == -1) {
125 serverSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
127 NSAssert1(serverSocket != -1, @"Failed to create debugger socket. %s", strerror(errno));
130 …setsockopt(serverSocket, SOL_SOCKET, SO_KEEPALIVE|SO_REUSEPORT|SO_REUSEADDR|TCP_NODELAY, (void *)&…
137 …NSAssert1( bind(serverSocket, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) != -1, @"b…
139 NSAssert1(listen(serverSocket,50) == 0, @"listen(2) failed. %s", strerror(errno));
143 debuggerSocket = accept(serverSocket, &debugger_sockaddr, &debugger_socklen);
181 - (NSInteger) serverSocket
183 return serverSocket;
188 serverSocket = aServerSocket;
358 shutdown(serverSocket,SHUT_RDWR);
359 serverSocket = -1;