IP.Board  3.3.0
SocketWriteRead Class Reference

Public Member Functions

 __construct ($host, $port, $request, $responseLength=1160)
 getErrorNumner ()
 getErrorString ()
 getResponse ()
 send ()

Constructor & Destructor Documentation

__construct ( host,
port,
request,
responseLength = 1160 
)
Parameters:
string$hostThe host to send/receive data.
int$portThe port on the remote host.
string$requestThe data to send.
int$responseLengthThe amount of data to read. Defaults to 1160 bytes.

Member Function Documentation

Returns the error number

If there was no error, 0 will be returned.

Returns:
int

Returns the error string

If there was no error, an empty string will be returned.

Returns:
string

Returns the server response text

Returns:
string
send ( )

Sends the data to the remote host.

Exceptions:
Anexception is thrown if a connection cannot be made to the remote host.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables