Table of Contents
-
DATAGRAM_MAX_LENGTH
= 65023
-
$ip
: string
-
$port
: int
-
$socket
: resource|Socket|null
-
__construct()
: mixed
-
close()
: void
-
write()
: void
-
assembleMessage()
: string
-
getSocket()
: resource|Socket
-
send()
: void
DATAGRAM_MAX_LENGTH
protected
mixed
DATAGRAM_MAX_LENGTH
= 65023
$ip
protected
string
$ip
$port
protected
int
$port
$socket
protected
resource|Socket|null
$socket
= null
__construct()
public
__construct(string $ip[, int $port = 514 ]) : mixed
Parameters
-
$ip
: string
-
-
$port
: int
= 514
-
Return values
mixed
—
close()
public
close() : void
Return values
void
—
write()
public
write(string $line[, string $header = "" ]) : void
Parameters
-
$line
: string
-
-
$header
: string
= ""
-
Return values
void
—
assembleMessage()
protected
assembleMessage(string $line, string $header) : string
Parameters
-
$line
: string
-
-
$header
: string
-
Return values
string
—
getSocket()
protected
getSocket() : resource|Socket
Return values
resource|Socket
—
send()
protected
send(string $chunk) : void
Parameters
-
$chunk
: string
-
Return values
void
—