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

Method acceptImpl

lib/php/lib/Server/TServerSocket.php:112–123  ·  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

110 * @return TSocket
111 */
112 protected function acceptImpl()
113 {
114 $handle = @stream_socket_accept($this->listener_, $this->acceptTimeout_ / 1000.0);
115 if (!$handle) {
116 return null;
117 }
118
119 $socket = new TSocket();
120 $socket->setHandle($handle);
121
122 return $socket;
123 }
124}

Callers

nothing calls this directly

Calls 1

setHandleMethod · 0.45

Tested by

no test coverage detected