Erebot
latest
A modular IRC bot for PHP 7.0+
|
A worker process for the Identification Protocol (RFC 1413). More...
Public Member Functions | |
__construct (\Erebot\Interfaces\Core $bot, $socket) | |
__destruct () | |
Destructor. | |
connect () | |
disconnect ($quitMessage=null) | |
getBot () | |
getConfig ($chan) | |
getIO () | |
getSocket () | |
isConnected () | |
process () | |
Processes commands queued in the input buffer. | |
read () | |
write () | |
Protected Member Functions | |
handleMessage ($line) | |
Protected Attributes | |
$bot | |
A bot object implementing the Erebot::Interfaces::Core interface. | |
$io | |
I/O manager for the socket. | |
$socket | |
The underlying socket, represented as a stream. | |
A worker process for the Identification Protocol (RFC 1413).
Definition at line 30 of file Worker.php.
Erebot\Identd\Worker::__construct | ( | \Erebot\Interfaces\Core | $bot, |
$socket | |||
) |
Creates a worker object capable of handling a single identification request. As soon as the request has been handled and a response has been sent, this worker will destroy itself.
Erebot::Interfaces::Core | $bot | Instance of the bot to operate on. |
resource | $socket | A socket connected to a client requesting an identification from our IdentD server. |
Definition at line 57 of file Worker.php.
References Erebot\Identd\Worker\$bot, Erebot\Identd\Worker\$socket, and Erebot\LineIO\EOL_WIN.
|
protected |
Handles an IdentD request.
string | $line | IdentD request to handle. |
string | Message to send as the response to this request. |
false | The request was malformed. |
Definition at line 123 of file Worker.php.
References Erebot\Identd\Worker\$socket.
Referenced by Erebot\Identd\Worker\process().