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

Class: Net_Server_Driver

Source Location: /Net_Server-1.0.3/Net/Server/Driver.php

Class Overview

PEAR
   |
   --Net_Server_Driver

Base class for all drivers


Author(s):

Methods


Child classes:

Net_Server_Driver_Sequential
Sequential server class.
Net_Server_Driver_Fork
Forking server class.
Net_Server_Multiprocess
Base class for all drivers

Inherited Variables

Inherited Methods


Class Details

[line 34]
Base class for all drivers

This class provides methods, can be used by all server implementations.



[ Top ]


Method Detail

getEndCharacter   [line 421]

string getEndCharacter( )

Returns the readEndCharacter setting.
  • Return: The readEndCharacter setting
  • Access: public

[ Top ]

getLastSocketError   [line 387]

string getLastSocketError( resource &$fd)

return string for last socket error
  • Return: Last error
  • Access: public

Parameters:

resource   &$fd   —  Socket to get last error from

[ Top ]

setCallbackObject   [line 368]

void setCallbackObject( object &$object)

register a callback object

The callback object is the actual server, that contains the logic to process the events triggered by the driver class.

The best way to create a callback object is to extend the Net_Server_Handler class.


Parameters:

object   &$object   —  callback object

[ Top ]

setDebugMode   [line 215]

void setDebugMode( mixed $debug, [string $dest = "stdout"])

Set debug mode

Debug information can either be written to a logfile or standard out (= the console).

To disable debugging, pass false as first parameter.

  • Access: public

Parameters:

mixed   $debug   —  [text|html|false]
string   $dest   —  Destination of debug message ("stdout" to output or filename if log should be written)

[ Top ]

setEndCharacter   [line 407]

void setEndCharacter( string $readEndCharacter)

Sets the readEndCharacter setting.
  • Access: public

Parameters:

string   $readEndCharacter   —  The new end character

[ Top ]

_sendDebugMessage   [line 321]

void _sendDebugMessage( string $msg)

send a debug message

Debug messages will be either sent to standard out or written to a logfile, depending on debug settings.


Parameters:

string   $msg   —  Message to debug

[ Top ]


Documentation generated on Wed, 09 Dec 2015 22:58:34 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.