-
Notifications
You must be signed in to change notification settings - Fork 32
PhpOrient Protocols Binary OrientSocket
Domenico Lupinetti edited this page Jan 1, 2015
·
3 revisions
- Class name: OrientSocket
- Namespace: PhpOrient\Protocols\Binary
const CONN_TIMEOUT = 5 const READ_TIMEOUT = 30 const WRITE_TIMEOUT = 10 public boolean $connected = false- Visibility: public
public integer $protocolVersion = \PhpOrient\Configuration\Constants::SUPPORTED_PROTOCOL- Visibility: public
public resource $_socketThe socket resource
- Visibility: public
public string $hostname = ''Server host address
- Visibility: public
public integer $port = -1Server port
- Visibility: public
mixed PhpOrient\Protocols\Binary\OrientSocket::__construct(string $hostname, integer $port)- Visibility: public
- $hostname string
The host or IP address to connect to.
- $port integer
The remote port.
\PhpOrient\Protocols\Binary\OrientSocket PhpOrient\Protocols\Binary\OrientSocket::connect()- Visibility: public
string PhpOrient\Protocols\Binary\OrientSocket::getErr()- Visibility: public
mixed PhpOrient\Protocols\Binary\OrientSocket::__destruct()- Visibility: public
string PhpOrient\Protocols\Binary\OrientSocket::read(integer $size)- Visibility: public
- $size integer
The number of bytes to read, defaults to the socket's bufferSize.
mixed PhpOrient\Protocols\Binary\OrientSocket::write(mixed $bytes)- Visibility: public
- $bytes mixed
the bytes to write to the socket.