Lines Matching refs:conn
107 $conn = stream_socket_accept($socket, -1, $peername);
108 if ($conn === false) throw new \splitbrain\phpcli\Exception('socket failed');
123 $this->handleGeminiConnection($pid, $conn, $peername);
131 * @param resource $conn The connected socket
135 protected function handleGeminiConnection($pid, $conn, $peername) argument
137 $tlsSuccess = stream_socket_enable_crypto($conn, true, STREAM_CRYPTO_METHOD_TLS_SERVER);
139 fclose($conn);
147 $req = stream_get_line($conn, 1024, "\n");
186 fputs($conn, $response);
188 fputs($conn, $body);
190 fflush($conn);
191 fclose($conn);