[line 1592]
[line 1604]
[line 1586]
[line 1580]
static int Clear_Timers( )
static void Flush_Write_Buffers( )
static int Fork( )
static bool Free_Connection( NS_Connection_Handler $h)
static bool Free_Datagram_Handler( NS_Datagram_Handler $h)
static bool Free_Listener( NS_Listener $l)
For consistency Free_Listener() will also wrap Nanoserv::Free_Datagram_Handler() if the given object is an instance of NS_Datagram_Handler
static void Free_Shared_Object( NS_Shared_Object $o)
static void Free_Write_Buffers( int $sid)
static array Get_Connections( [bool $include_pending_connect = false])
Note: connections created by fork()ing listeners can not be retreived this way
static array Get_Listeners( [bool $include_inactive = false])
static array Get_Timers( [bool $include_inactive = false])
static NS_Connection_Handler New_Connection( string $addr, string $handler_classname, [mixed $handler_options = false])
static NS_Datagram_Handler New_Datagram_Handler( string $addr, string $handler_classname)
static NS_Listener New_Listener( string $addr, string $handler_classname, [mixed $handler_options = false])
For consistency New_Listener() will also wrap Nanoserv::New_Datagram_Handler() if the given addr is of type "udp"
static NS_Shared_Object New_Shared_Object( [object $o = false])
shared objects allow forked processes to use objects stored on the master process if $o is ommited, a new StdClass empty object is created
static NS_Static_Write_Buffer New_Static_Write_Buffer( NS_Socket $socket, string $data, [mixed $callback = false])
This method is used by NS_Connection_Handler::Write() and should not be called unless you really know what you are doing
static NS_Stream_Write_Buffer New_Stream_Write_Buffer( NS_Socket $socket, $data, [mixed $callback = false], resource $stream)
This method is used by NS_Connection_Handler::Write_Stream() and should not be called unless you really know what you are doing
static NS_Timer New_Timer( float $delay, mixed $callback)
static array Run( [float $time = NULL], [array $user_streams = NULL])
The $time parameter can have different meanings:
static void Set_Max_Children( int $i)
Note: this setting only affect and applies to forking listeners
[line 1526]