PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
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: