Amp\Socket\Server class Server

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct($socket)
No documentation.
Type Parameter Description Default Value
mixed $socket No documentation. none
accept — public function accept()
No documentation.
stop — public function stop()
No documentation.
__destruct — public function __destruct()

The server will automatically stop listening if this object is garbage collected. However, socket clients accepted by the server will not be closed just because the server is unloaded.

Accepted clients must be manually closed or garbage collected.