Class SocketNotifier
The SocketNotifier class provides a way to be notified when some activity happens in a socket.
You can add instance of SocketNotifier to Budabot's event loop with method SocketManager::addSocketNotifier() and remove it with SocketManager::removeSocketNotifier().
When some activity happens in the given socket the event loop will call the given callback to notify of the activity.
public
|
|
public
|
|
public
|
|
public
|
integer |
ACTIVITY_READ
|
#
1
|
integer |
ACTIVITY_WRITE
|
#
2
|
integer |
ACTIVITY_ERROR
|
#
4
|
private
|
$socket
|
|
private
|
$type
|
|
private
|
$callback
|