public function accept()
    {
        $resource = @socket_accept($this->resource);
        if ($resource === false) {
            throw Exception::createFromGlobalSocketOperation();
        }
        return new Socket($resource);
    }
public function accept()
    {
        $resource = @socket_accept($this->resource);
        if ($resource === false) {
            throw Exception::createFromGlobalSocketOperation();
        }
        return new Socket($resource);
    }
public function accept ( ) { $ resource = @ socket_accept ( $ this -> resource ) ; if ( $ resource === false ) { throw Exception :: createFromGlobalSocketOperation ( ) ; } return new Socket ( $ resource ) ; }
accept an incomming connection on this listening socket

@return \Socket\Raw\Socket new connected socket used for communication
@throws Exception on error, if this is not a listening socket or there's no connection pending
@see self::selectRead() to check if this listening socket can accept()
@see Factory::createServer() to create a listening socket
@see self::listen() has to be called first
@uses socket_accept()
accept an incomming connection on this listening socket