- class
ServerSocket
(php\net\ServerSocket
) - package
std
- source
php/net/ServerSocket.php
Description
Class SocketServer
ServerSocket ::
findAvailableLocalPort()
ServerSocket ::
isAvailableLocalPort()
->
__construct()
->
accept()
->
bind()
->
close()
->
isClosed()
->
isBound()
- Returns the binding state of the ServerSocket.->
setSoTimeout()
- Enable/disable SO_TIMEOUT with the specified timeout, in->
setReuseAddress()
- Enable/disable the SO_REUSEADDR socket option.->
setReceiveBufferSize()
->
setPerformancePreferences()
- Sets performance preferences for this ServerSocket.
ServerSocket::findAvailableLocalPort(): int
ServerSocket::isAvailableLocalPort(int $port): bool
__construct(int $port, int $backLog): void
accept(): Socket
bind(string $hostname, int $port, int $backLog): void
close(): void
isClosed(): bool
isBound(): bool
Returns the binding state of the ServerSocket.
setSoTimeout(int $timeout): void
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
setReuseAddress(bool $on): void
Enable/disable the SO_REUSEADDR socket option.
setReceiveBufferSize(int $size): void
setPerformancePreferences(int $connectTime, int $latency, int $bandWidth): void
Sets performance preferences for this ServerSocket.
! Not implemented yet for TCP/IP