This is automatic generated document for things in Swow\Psr7\Server\Server class

Class Server

Constants

public BIND_FLAG_IPV6ONLY = null public BIND_FLAG_NONE = null public BIND_FLAG_REUSEADDR = null public BIND_FLAG_REUSEPORT = null protected BROADCAST_FLAG_NONE = 0 protected BROADCAST_FLAG_RECORD_EXCEPTIONS = 1 public DEFAULT_BACKLOG = null public TYPE_TCP = null public TYPE_TCP4 = null public TYPE_TCP6 = null

Properties

protected $recvMessageTimeout

Methods

Method __construct

public function __construct ( int $type )

Method __debugInfo

public function __debugInfo ( ) : array

Method acceptConnection

public function acceptConnection ( ?int $timeout ) : ServerConnection

Method bind

public function bind ( string $name , int $port , int $flags ) : static

Method broadcastWebSocketFrame

public function broadcastWebSocketFrame ( WebSocketFrameInterface $frame , iterable<ServerConnection> $targets , ?Closure(ServerConnection): bool $filter , int $flags ) : BroadcastResult

Method close

public function close ( ) : bool

Method getAcceptTimeout

public function getAcceptTimeout ( ) : int

Method getRecvMessageTimeout

public function getRecvMessageTimeout ( ) : int

Method getSockAddress

public function getSockAddress ( ) : string

Method getSockPort

public function getSockPort ( ) : int

Method getSocket

public function getSocket ( ) : Socket

Method getSocketType

public function getSocketType ( ) : int

Method listen

public function listen ( int $backlog ) : static

Method rebind

public function rebind ( string $name , int $port , int $flags ) : static

Method setAcceptTimeout

public function setAcceptTimeout ( int $timeout ) : static

Method setRecvBufferSize

public function setRecvBufferSize ( int $size ) : static

Method setRecvMessageTimeout

public function setRecvMessageTimeout ( int $timeout ) : static

Param int $timeout HTTP keep alive timeout in milliseconds

Method setSendBufferSize

public function setSendBufferSize ( int $size ) : static

Method setTcpKeepAlive

public function setTcpKeepAlive ( bool $enable , int $delay ) : static

Method setTcpNodelay

public function setTcpNodelay ( bool $enable ) : static

Method setTimeout

public function setTimeout ( int $timeout ) : static

Copyright 2022 the Swow contributors