Lines Matching defs:hServerSocket
134 RTSOCKET volatile hServerSocket;
353 pServer->hServerSocket = WaitSock;
443 RTSOCKET hServerSocket;
444 ASMAtomicXchgHandle(&pServer->hServerSocket, NIL_RTSOCKET, &hServerSocket);
445 if (hServerSocket != NIL_RTSOCKET)
447 RTSocketRetain(hServerSocket);
448 ASMAtomicWriteHandle(&pServer->hServerSocket, hServerSocket);
453 RTSocketRelease(hServerSocket);
458 RTSocketRelease(hServerSocket);
469 int rc = rtSocketAccept(hServerSocket, &hClientSocket, (struct sockaddr *)&RemoteAddr, &cbRemoteAddr);
470 RTSocketRelease(hServerSocket);
507 hServerSocket = rtTcpAtomicXchgSock(&pServer->hServerSocket, NIL_RTSOCKET);
509 rtTcpClose(hServerSocket, "Listener: server stopped", false /*fTryGracefulShutdown*/);
527 rtTcpServerDestroySocket(&pServer->hServerSocket, "ListenCleanup", false /*fTryGracefulShutdown*/);
588 RTSOCKET hServerSocket;
589 ASMAtomicXchgHandle(&pServer->hServerSocket, NIL_RTSOCKET, &hServerSocket);
590 if (hServerSocket != NIL_RTSOCKET)
592 RTSocketRetain(hServerSocket);
593 ASMAtomicWriteHandle(&pServer->hServerSocket, hServerSocket);
598 RTSocketRelease(hServerSocket);
603 RTSocketRelease(hServerSocket);
618 rc = rtSocketAccept(hServerSocket, &hClientSocket, (struct sockaddr *)&RemoteAddr, &cbRemoteAddr);
619 RTSocketRelease(hServerSocket);
730 rtTcpServerDestroySocket(&pServer->hServerSocket, "RTTcpServerShutdown", false /*fTryGracefulShutdown*/);
794 rtTcpServerDestroySocket(&pServer->hServerSocket, "Destroyer: server", false /*fTryGracefulShutdown*/);