array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'eventhttpconnection.setlocalport.php', 1 => 'EventHttpConnection::setLocalPort', 2 => 'Sets the local port from which connections are made', ), 'up' => array ( 0 => 'class.eventhttpconnection.php', 1 => 'EventHttpConnection', ), 'prev' => array ( 0 => 'eventhttpconnection.setlocaladdress.php', 1 => 'EventHttpConnection::setLocalAddress', ), 'next' => array ( 0 => 'eventhttpconnection.setmaxbodysize.php', 1 => 'EventHttpConnection::setMaxBodySize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventhttpconnection/setlocalport.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventHttpConnection::setLocalPort

(PECL event >= 1.2.6-beta)

EventHttpConnection::setLocalPortSets the local port from which connections are made

说明

public EventHttpConnection::setLocalPort( int $port ): void

Sets the local port from which connections are made.

参数

port

The port number.

返回值

参见