Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 728 of file rpc_server.c.
Referenced by RpcServerListen(), and RpcServerRegisterIf2().
{ RPC_STATUS status = RPC_S_ALREADY_LISTENING; RpcServerProtseq *cps; TRACE("\n"); EnterCriticalSection(&listen_cs); if (auto_listen || (manual_listen_count++ == 0)) { status = RPC_S_OK; if (++listen_count == 1) std_listen = TRUE; } LeaveCriticalSection(&listen_cs); if (std_listen) { EnterCriticalSection(&server_cs); LIST_FOR_EACH_ENTRY(cps, &protseqs, RpcServerProtseq, entry) { status = RPCRT4_start_listen_protseq(cps, TRUE); if (status != RPC_S_OK) break; /* make sure server is actually listening on the interface before * returning */ RPCRT4_sync_with_server_thread(cps); } LeaveCriticalSection(&server_cs); } return status; }