Raw TCP connection

Class Methods

The following methods can be invoked on instances of this class.

__construct(mixed host, int port)

Constructs connection.

__destruct()

Closes connection on finalization.

setTimeout(int timeout)

Changes timeout.

send(mixed request)

Sends a JSON-RPC request over plain TCP.

useSpec(string spec)

Sets the spec version to use for this connection

sendRequest(mixed method, array params)

Send a request directly

sendNotification(mixed method, array params)

Send a notification directly

getNativeInterface()

Creates a native remote interface for the target server

factory(mixed target)

Constructs connection handler.