Socket
in package
Table of Contents
- $socket : Socket
- $bindAddress : InternetAddress
- __construct() : mixed
- close() : void
- getBindAddress() : InternetAddress
- getLastError() : int
- getSocket() : Socket
- readPacket() : string|null
- setRecvBuffer() : $this
- setSendBuffer() : $this
- writePacket() : int
Properties
$socket
protected
Socket
$socket
$bindAddress
private
InternetAddress
$bindAddress
Methods
__construct()
public
__construct(InternetAddress $bindAddress) : mixed
Parameters
- $bindAddress : InternetAddress
Tags
Return values
mixed —close()
public
close() : void
Return values
void —getBindAddress()
public
getBindAddress() : InternetAddress
Return values
InternetAddress —getLastError()
public
getLastError() : int
Return values
int —getSocket()
public
getSocket() : Socket
Return values
Socket —readPacket()
public
readPacket(string &$source, int &$port) : string|null
Parameters
- $source : string
-
reference parameter
- $port : int
-
reference parameter
Tags
Return values
string|null —setRecvBuffer()
public
setRecvBuffer(int $size) : $this
Parameters
- $size : int
Return values
$this —setSendBuffer()
public
setSendBuffer(int $size) : $this
Parameters
- $size : int
Return values
$this —writePacket()
public
writePacket(string $buffer, string $dest, int $port) : int
Parameters
- $buffer : string
- $dest : string
- $port : int