Property | Type | Description | |
---|---|---|---|
$protocol | Workerman\Protocols\ProtocolInterface | The format is like this Workerman\\Protocols\\Http. |
Property | Type | Description | |
---|---|---|---|
$_remoteAddress | string | Remote address. | |
$_socket | resource | Udp socket. |
Method | Description | |
---|---|---|
__construct ( resource $socket, string $remote_address ) | Construct. | |
close ( mixed $data = null, boolean $raw = false ) : boolean | Close connection. | |
getRemoteIp ( ) : string | Get remote IP. | |
getRemotePort ( ) : integer | Get remote port. | |
send ( string $send_buffer, boolean $raw = false ) : void | boolean | Sends data on the connection. |
public __construct ( resource $socket, string $remote_address ) | ||
$socket | resource | |
$remote_address | string |