lithium\net\socket\Context::close()
Implements
lithium\net\Socket::close()
Closes the socket connection.
Returns
booleanSuccess.
Source
public function close() {
if (!is_resource($this->_resource)) {
return true;
}
fclose($this->_resource);
if (is_resource($this->_resource)) {
$this->close();
}
return true;
}