original_string: public function listen($backlog = 0)
      {
          return static::exceptionOnFalse(
              $this->resource,
              function ($resource) use ($backlog) {
                  return @socket_listen($resource, $backlog);
              }
          );
      }
code: public function listen($backlog = 0)
      {
          return static::exceptionOnFalse(
              $this->resource,
              function ($resource) use ($backlog) {
                  return @socket_listen($resource, $backlog);
              }
          );
      }
code_tokens: public function listen ( $ backlog = 0 ) { return static :: exceptionOnFalse ( $ this -> resource , function ( $ resource ) use ( $ backlog ) { return @ socket_listen ( $ resource , $ backlog ) ; } ) ; }
docstring: Listens for a connection on a socket.
  
  <p>After the socket has been created using <code>create()</code> and bound to a name with <code>bind()</code>,
  it may be told to listen for incoming connections on socket.</p>
  
  @param int $backlog <p>A maximum of backlog incoming connections will be queued for processing. If a connection
  request arrives with the queue full the client may receive an error with an indication of ECONNREFUSED, or, if
  the underlying protocol supports retransmission, the request may be ignored so that retries may succeed.</p><p>
  <b>Note:</b> The maximum number passed to the backlog parameter highly depends on the underlying platform. On
  Linux, it is silently truncated to <code>SOMAXCONN</code>. On win32, if passed <code>SOMAXCONN</code>, the
  underlying service provider responsible for the socket will set the backlog to a maximum reasonable value. There
  is no standard provision to find out the actual backlog value on this platform.</p>
  
  @throws Exception\SocketException If the listen fails.
  
  @return bool <p>Returns <code>true</code> on success.
docstring_tokens: Listens for a connection on a socket .