메소드 |
설명 |
|
__construct ( resource $socket ) : void |
Constructs a new connection. |
|
_read_buffer ( integer $length = XPSPL_SOCKET_READ_LENGTH, integer $flags = MSG_DONTWAIT ) : string |
Reads the given length of data from the socket into the read buffer. |
|
disconnect ( ) : event\Disconnect |
Send the signal to disconnect this socket. |
|
flush_read_buffer ( ) : void |
Flushes the read buffer. |
|
get_address ( ) : string | null |
Returns the address of the socket. |
|
get_resource ( ) : resource |
Returns the socket resource. |
|
is_connected ( ) : boolean |
Returns if the socket is currently connected. |
|
read ( $length = XPSPL_SOCKET_READ_LENGTH, $start ) : void |
Read data from the socket. |
|
write ( string $string, integer $flags = null ) : integer | boolean |
Writes data to the socket. |
|