Properties

$socket

$socket : 

Type

$address

$address : 

Type

$port

$port : 

Type

$debug

$debug : 

Type

Methods

__construct()

__construct(  $opts = array(),   $start = true) 

Parameters

$opts
$start

connect()

connect(  $address = NULL,   $port = NULL) 

Parameters

$address
$port

shutdown()

shutdown(  $what = 2) 

Parameters

$what

close()

close(  $graceful = false,   $linger = false) 

Parameters

$graceful
$linger

error_code()

error_code() 

error_msg()

error_msg() 

try_call()

try_call(  $try) 

Parameters

$try

send()

send(  $msg,   $len = NULL,   $flags) 

Parameters

$msg
$len
$flags

send_str()

send_str(  $buf,   $flags,   $fatal = true) 

Parameters

$buf
$flags
$fatal

write()

write(  $msg,   $len = NULL) 

Parameters

$msg
$len

write_str()

write_str(  $buf,   $fatal = true) 

Parameters

$buf
$fatal

read()

read(  $len,   $type = PHP_BINARY_READ) 

Parameters

$len
$type

recv()

recv(  $buf,   $len,   $flags) 

Parameters

$buf
$len
$flags

nonblock()

nonblock() 

block()

block() 

bind()

bind(  $address = NULL,   $port = NULL) 

Parameters

$address
$port

listen()

listen(  $backlog) 

Parameters

$backlog

accept()

accept(  $object = true) 

Parameters

$object

set_addr()

set_addr(  $address,   $port) 

Parameters

$address
$port