Class ClientSocket

(line 18)
Base
   |
   --ClientSocket

Located in File: Program_Root/sdk/socket/ClientSocket.php


$Id: ClientSocket.php,v 1.1.1.1 2003/03/27 10:27:42 maro Exp $

Provides a simple Socket object sending messages to sockets and read the response.


Class Variable Summary
$__host
Host to connect to
Default Value: -> ""<-
$__port
Port to connect to
Default Value: -> ""<-

Inherited Class Variable Summary
Inherited From Class Base
Variable Default Value Description
Base::$clazz -> <-
Base::$logFile -> _DEBUG_FILE <-
Base::$loglevel -> _DEBUG_LEVEL <- debug - logstatements above and including 'debug' are printed.
Base::$loglevels ->array ("debug" => 0, "info" => 1, "warn" => 2, "fatal" => 3) <-
Base::$logoutput -> _DEBUG_OUTPUT <- 0 - log to screen
Base::$method -> <-

Method Summary
void constructor ClientSocket ( $host, $port )
Creates a new ClientSocket for use with specified host and port
string send ( $message )
Sends a message to the desired host/port and reads the response from the socket and returns this to the calling app.
Inherited Method Summary
Inherited From Class Base
Function Description
Base::Base()
Base::dbg()
Base::formatLongDate()
Base::formatLongDateTime()
Base::formatShortDate()
Base::formatShortDateTime()
Base::logDebug()
Base::logFatal()
Base::logInfo()
Base::logWarn()
Base::registerClass()
Base::registerMethod()
Base::setLoglevel()
Base::toFile()
Base::toScreen()

Method Detail

Constructor ClientSocket

(line 31)

void ClientSocket( string $host, int $port)

Creates a new ClientSocket for use with specified host and port
Function Parameters:
- string $host:
- int $port:
Function Info:

[ Top ]


send

(line 44)

string send( string $message)

Sends a message to the desired host/port and reads the response from the socket and returns this to the calling app.
Function Parameters:
- string $message: the message to send.
Function Info:
return - response from socket.

[ Top ]



Variable Detail

$__host

(line 22)
Data type: mixed
Host to connect to

[ Top ]

$__port

(line 24)
Data type: mixed
Port to connect to

[ Top ]



Documention generated on Mon, 31 Mar 2003 10:17:44 +0200 by phpDocumentor 1.2.0rc1