Definition at line 14 of file UdpSocket.php.
◆ __construct()
Monolog\Handler\SyslogUdp\UdpSocket::__construct |
( |
|
$ip, |
|
|
|
$port = 514 |
|
) |
| |
◆ assembleMessage()
Monolog\Handler\SyslogUdp\UdpSocket::assembleMessage |
( |
|
$line, |
|
|
|
$header |
|
) |
| |
|
protected |
◆ close()
Monolog\Handler\SyslogUdp\UdpSocket::close |
( |
| ) |
|
Definition at line 34 of file UdpSocket.php.
36 if (is_resource($this->socket)) {
37 socket_close($this->socket);
◆ send()
Monolog\Handler\SyslogUdp\UdpSocket::send |
( |
|
$chunk | ) |
|
|
protected |
Definition at line 42 of file UdpSocket.php.
Referenced by Monolog\Handler\SyslogUdp\UdpSocket\write().
44 if (!is_resource($this->socket)) {
45 throw new \LogicException(
'The UdpSocket to '.$this->ip.
':'.$this->port.
' has been closed and can not be written to anymore');
47 socket_sendto($this->socket, $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port);
◆ write()
Monolog\Handler\SyslogUdp\UdpSocket::write |
( |
|
$line, |
|
|
|
$header = "" |
|
) |
| |
◆ $ip
Monolog\Handler\SyslogUdp\UdpSocket::$ip |
|
protected |
◆ $port
Monolog\Handler\SyslogUdp\UdpSocket::$port |
|
protected |
◆ $socket
Monolog\Handler\SyslogUdp\UdpSocket::$socket |
|
protected |
◆ DATAGRAM_MAX_LENGTH
const Monolog\Handler\SyslogUdp\UdpSocket::DATAGRAM_MAX_LENGTH = 65023 |
The documentation for this class was generated from the following file:
- libs/composer/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php