Aufstellung aller Elemente
Öffentliche Methoden |
| | __construct () |
| | Creates sockets.
|
| | __destruct () |
| | Closes all connections.
|
| | countSockets () |
| | Returns the amount of active sockets.
|
| | addSocket ($add_socket) |
| | Adds a socket to the pool.
|
| | removeSocket ($remove_socket) |
| | Removes the given socket from the pool.
|
| | createTcpSocket ($IPv6=FALSE) |
| | Creates a new TcpSocket and adds it to the pool.
|
| | select ($read, $write, $except, $timeout=NULL) |
| | Returns an array of sockets one can read from.
|
Geschützte Attribute |
|
| $sockets |
Ausführliche Beschreibung
Definiert in Zeile 8 der Datei SocketPool.php.
Beschreibung der Konstruktoren und Destruktoren
| Socket_SocketPool.__construct |
( |
|
) |
|
| Socket_SocketPool.__destruct |
( |
|
) |
|
Closes all connections.
- Rückgabe:
- void
Definiert in Zeile 28 der Datei SocketPool.php.
Dokumentation der Elementfunktionen
| Socket_SocketPool.addSocket |
( |
$ |
add_socket |
) |
|
| Socket_SocketPool.countSockets |
( |
|
) |
|
Returns the amount of active sockets.
- Rückgabe:
- int
Definiert in Zeile 36 der Datei SocketPool.php.
| Socket_SocketPool.createTcpSocket |
( |
$ |
IPv6 = FALSE |
) |
|
Creates a new TcpSocket and adds it to the pool.
- Ausnahmebehandlung:
-
- Parameter:
-
| boolean | $IPv6 will determine whether the socket uses IPv4 or IPv6. |
- Rückgabe:
- ressource
Definiert in Zeile 73 der Datei SocketPool.php.
Benutzt addSocket().
| Socket_SocketPool.removeSocket |
( |
$ |
remove_socket |
) |
|
Removes the given socket from the pool.
The socket will be shutdown.
- Parameter:
-
- Rückgabe:
- void
Definiert in Zeile 55 der Datei SocketPool.php.
| Socket_SocketPool.select |
( |
$ |
read, |
|
|
$ |
write, |
|
|
$ |
except, |
|
|
$ |
timeout = NULL | |
|
) |
| | |
Returns an array of sockets one can read from.
- Parameter:
-
| array | $read |
| array | $write |
| array | $except |
| int | $timeout |
- Ausnahmebehandlung:
-
- Rückgabe:
- array
Definiert in Zeile 91 der Datei SocketPool.php.
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: