Documentation

SocketClient
in package

Phrity\Net\SocketClient class.

Table of Contents

Properties

$context  : mixed
$handler  : mixed
$persistent  : mixed
$timeout  : mixed
$uri  : mixed

Methods

__construct()  : mixed
Create new socker server instance
connect()  : SocketStream
Create a connection on remote socket.
setContext()  : SocketClient
Set stream context.
setPersistent()  : SocketClient
Set connection persistency.
setTimeout()  : SocketClient
Set timeout in seconds.

Properties

Methods

setContext()

Set stream context.

public setContext([array<string|int, mixed>|null $options = null ][, array<string|int, mixed>|null $params = null ]) : SocketClient
Parameters
$options : array<string|int, mixed>|null = null
$params : array<string|int, mixed>|null = null
Return values
SocketClient

        
On this page

Search results