nanoserv
[ class tree: nanoserv ] [ index: nanoserv ] [ all elements ]

Class: NS_Telnet_Handler

Source Location: /handlers/NS_Telnet_Handler.php

Class Overview

NS_Handler
   |
   --NS_Connection_Handler
      |
      --NS_Telnet_Handler

Telnet protocol handler handler class


Author(s):

Variables

Constants

Methods


Child classes:

NS_Telnet_Line_Input_Connection
Telnet with line input protocol handler handler class

Inherited Constants

Inherited Variables

Inherited Methods

Class: NS_Connection_Handler

NS_Connection_Handler::Connect()
Connect
NS_Connection_Handler::Disconnect()
Disconnect
NS_Connection_Handler::on_Accept()
Event called on received connection
NS_Connection_Handler::on_Connect()
Event called on established connection
NS_Connection_Handler::on_Connect_Fail()
Event called on failed connection
NS_Connection_Handler::on_Disconnect()
Event called on disconnection
NS_Connection_Handler::on_Fork_Done()
Event called after forking, both on master and child processes
NS_Connection_Handler::on_Fork_Prepare()
Event called before forking
NS_Connection_Handler::on_Read()
Event called on data reception
NS_Connection_Handler::Write()
Send data over the connection
NS_Connection_Handler::Write_Stream()
Send open stream over the connection

Class: NS_Handler

NS_Handler::Set_Option()
Set a stream context option

Class Details

[line 38]
Telnet protocol handler handler class



Tags:

abstract:  


[ Top ]


Class Variables

$remote_options = array()

[line 55]

Protocol options set by the remote party



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


method on_Read [line 83]

void on_Read( $data)



Tags:

access:  public


Overrides NS_Connection_Handler::on_Read() (Event called on data reception)

Parameters:

   $data  

[ Top ]

method on_Telnet_Read [line 143]

void on_Telnet_Read( string $s)

Telnet read event

This event is called every time there is data received




Tags:

abstract:  
access:  public


Overridden in child classes as:

NS_Telnet_Line_Input_Connection::on_Telnet_Read()
Telnet read event

Parameters:

string   $s  

[ Top ]

method Raw_Write [line 69]

void Raw_Write( $data, [ $callback = false])



Tags:

access:  protected


Parameters:

   $data  
   $callback  

[ Top ]

method Send_Option [line 63]

void Send_Option( $type, $option)



Tags:

access:  public


Parameters:

   $type  
   $option  

[ Top ]

method Write [line 75]

void Write( $data, [ $callback = false])



Tags:

access:  public


Overrides NS_Connection_Handler::Write() (Send data over the connection)

Parameters:

   $data  
   $callback  

[ Top ]


Class Constants

IAC =  "\xff"

[line 40]


[ Top ]

OPT_8BIT =  "\0"

[line 47]


[ Top ]

OPT_ECHO =  "\1"

[line 48]


[ Top ]

OPT_LINE_MODE =  "\x22"

[line 50]


[ Top ]

OPT_SUPPRESS_GO_AHEAD =  "\3"

[line 49]


[ Top ]

TYPE_DO =  "\xfd"

[line 44]


[ Top ]

TYPE_DONT =  "\xfe"

[line 45]


[ Top ]

TYPE_WILL =  "\xfb"

[line 42]


[ Top ]

TYPE_WONT =  "\xfc"

[line 43]


[ Top ]



Documentation generated on Thu, 10 May 2012 22:01:25 +0200 by phpDocumentor 1.4.4