MCPcopy Create free account
hub / github.com/apache/thrift / acceptImpl

Method acceptImpl

lib/php/lib/Server/TSSLServerSocket.php:89–100  ·  view source on GitHub ↗

* Implementation of accept. If not client is accepted in the given time * * @return TSocket */

()

Source from the content-addressed store, hash-verified

87 * @return TSocket
88 */
89 protected function acceptImpl()
90 {
91 $handle = @stream_socket_accept($this->listener_, $this->acceptTimeout_ / 1000.0);
92 if (!$handle) {
93 return null;
94 }
95
96 $socket = new TSSLSocket();
97 $socket->setHandle($handle);
98
99 return $socket;
100 }
101}

Callers

nothing calls this directly

Calls 1

setHandleMethod · 0.45

Tested by

no test coverage detected