php8.5
Home/ Manual/ event / eventhttpconnection/ EventHttpConnection::setLocalPort

EventHttpConnection::setLocalPort

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Sets the local port from which connections are made

Description

EventHttpConnection::setLocalPort(int $port): void

Sets the local port from which connections are made.

Parameters

port

The port number.

Return Values

See Also

  • EventHttpConnection::setLocalAddress

Source: reference/event/eventhttpconnection/setlocalport.xml · from the official PHP manual (php/doc-en)