PocketMine-MP 5.21.1 git-e598364f0695495cbe71ddf0b62f134b51091c6e
raklib\server\ServerSocket Class Reference
+ Inheritance diagram for raklib\server\ServerSocket:
+ Collaboration diagram for raklib\server\ServerSocket:

Public Member Functions

 __construct (private InternetAddress $bindAddress)
 
 close ()
 
 disableBroadcast ()
 
 enableBroadcast ()
 
 getBindAddress ()
 
 getLastError ()
 
 getSocket ()
 
 readPacket (?string &$source, ?int &$port)
 
 setBlocking (bool $blocking)
 
 setRecvBuffer (int $size)
 
 setRecvTimeout (int $seconds, int $microseconds=0)
 
 setSendBuffer (int $size)
 
 writePacket (string $buffer, string $dest, int $port)
 

Protected Attributes

Socket $socket
 

Detailed Description

Definition at line 31 of file ServerSocket.php.

Constructor & Destructor Documentation

◆ __construct()

raklib\server\ServerSocket::__construct ( private InternetAddress  $bindAddress)

Definition at line 33 of file ServerSocket.php.

Member Function Documentation

◆ close()

raklib\generic\Socket::close ( )
inherited

Definition at line 58 of file Socket.php.

◆ disableBroadcast()

raklib\server\ServerSocket::disableBroadcast ( )

Definition at line 57 of file ServerSocket.php.

◆ enableBroadcast()

raklib\server\ServerSocket::enableBroadcast ( )

Definition at line 53 of file ServerSocket.php.

◆ getBindAddress()

raklib\server\ServerSocket::getBindAddress ( )

Definition at line 49 of file ServerSocket.php.

◆ getLastError()

raklib\generic\Socket::getLastError ( )
inherited

Definition at line 62 of file Socket.php.

◆ getSocket()

raklib\generic\Socket::getSocket ( )
inherited

Definition at line 54 of file Socket.php.

◆ readPacket()

raklib\server\ServerSocket::readPacket ( ?string &  $source,
?int &  $port 
)
Parameters
string$sourcereference parameter
int$portreference parameter
Exceptions
SocketException

Definition at line 67 of file ServerSocket.php.

◆ setBlocking()

raklib\generic\Socket::setBlocking ( bool  $blocking)
inherited

Definition at line 93 of file Socket.php.

◆ setRecvBuffer()

raklib\generic\Socket::setRecvBuffer ( int  $size)
inherited
Returns
$this

Definition at line 78 of file Socket.php.

◆ setRecvTimeout()

raklib\generic\Socket::setRecvTimeout ( int  $seconds,
int  $microseconds = 0 
)
inherited
Returns
$this

Definition at line 87 of file Socket.php.

◆ setSendBuffer()

raklib\generic\Socket::setSendBuffer ( int  $size)
inherited
Returns
$this

Definition at line 69 of file Socket.php.

◆ writePacket()

raklib\server\ServerSocket::writePacket ( string  $buffer,
string  $dest,
int  $port 
)
Exceptions
SocketException

Definition at line 82 of file ServerSocket.php.

Member Data Documentation

◆ $socket

Socket raklib\generic\Socket::$socket
protectedinherited

Definition at line 37 of file Socket.php.


The documentation for this class was generated from the following file: