SocketAddress
class SocketAddress
Constants
| DEFAULT_TIMEOUT |
|
| PROTOCOL_TCP |
|
Properties
| IP | $address | ||
| Port | $port |
Methods
static SocketAddress
from(string $ip, int $port, Protocol $protocol = Protocol::TCP)
Gets new socket address from specified IP, port and protocol information.
bool
isOpen()
Determines if a TCP socket is open
Details
at line 40
static SocketAddress
from(string $ip, int $port, Protocol $protocol = Protocol::TCP)
Gets new socket address from specified IP, port and protocol information.
This method takes care to creates the underlying IP and Port object.
at line 60
bool
isOpen()
Determines if a TCP socket is open