Cheetah
Public Member Functions | List of all members
SocketWriteRead Class Reference
Inheritance diagram for SocketWriteRead:
AkismetRequestSender

Public Member Functions

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

Detailed Description

Definition at line 339 of file Akismet.class.php.

Constructor & Destructor Documentation

◆ __construct()

SocketWriteRead::__construct ( )

Definition at line 344 of file Akismet.class.php.

Member Function Documentation

◆ getErrorNumner()

SocketWriteRead::getErrorNumner ( )

Returns the error number

If there was no error, 0 will be returned.

Returns
int

Definition at line 397 of file Akismet.class.php.

◆ getErrorString()

SocketWriteRead::getErrorString ( )

Returns the error string

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

Returns
string

Definition at line 408 of file Akismet.class.php.

◆ getResponse()

SocketWriteRead::getResponse ( )

Returns the server response text

Returns
string

Definition at line 386 of file Akismet.class.php.

◆ send()

SocketWriteRead::send (   $host,
  $port,
  $request,
  $responseLength = 1160 
)

Sends the data to the remote host.

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.
Exceptions
Anexception is thrown if a connection cannot be made to the remote host.
Returns
The server response

Implements AkismetRequestSender.

Definition at line 359 of file Akismet.class.php.


The documentation for this class was generated from the following file: