Lines Matching defs:server
26 * Uses PNCTL to fork incoming requests and send them to the server protocol handler.
47 protected $server;
120 public function run(SocketServer $server): void
122 $this->server = $server;
151 $this->server->removeClient($socket);
165 * Accept clients from the socket server in a loop with a timeout. This lets us to periodically check existing
171 'The server process has started and is now accepting clients.',
176 $socket = $this->server->accept(self::SOCKET_ACCEPT_TIMEOUT);
181 'A client was accepted, but the server is shutting down. Closing connection.',
217 } while ($this->server->isConnected());
266 * Attempts to shut down the server end all child processes in a graceful way...
273 * 6. Stops the main socket server process.
283 'The server shutdown process has started.',
313 $this->server->close();
315 'The server shutdown process has completed.',
390 * 1. If the server has not installed its signal handlers, do that first.