[line 145]
[line 151]
[line 127]
[line 157]
[line 163]
[line 121]
[line 169]
[line 115]
[line 133]
[line 139]
NS_Socket __construct( [resource $fd = false], [ $crypto_type = false])
Overridden in child classes as:
void __destruct( )
bool Block_Reads( bool $block)
This can be used to implement flow control when proxying data between two asymetric connections for example.
void Close( )
mixed Enable_Crypto( [bool $enable = true], [int $type = false])
bool Eof( )
string Get_Name( )
array Get_Options( )
string Get_Peer_Name( )
string Read( int $length)
string Read_From( string &$addr, [int $len = 16384])
bool Setup( )
bool Set_Blocking( bool $block)
bool Set_Option( string $wrapper, string $opt, mixed $val)
bool Set_Timeout( int $timeout)
int Set_Write_Buffer( int $buffer_size)
int Write( string $data)
write returns the number of bytes written to the socket
int Write_From_Stream( resource $stream, [int $len = 16384])
returns the number of bytes read from the stream and written to the socket
int Write_To( string $to, string $data)
[line 109]