Net_Socket::disconnect()
Net_Socket::disconnect() – disconnects from a server
Synopsis
require_once 'Net/Socket.php';
boolean Net_Socket::disconnect (
)
Описание
Disconnects froms server, closes the socket.
Return value
boolean
- Returns TRUE on success,
PEAR_Error on failure.
Throws
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | "not connected" | The connection to close was not open or is already closed. | Ensure a successfull call of connect() |
Замечание
This function can not be called statically.