Property | Type | Description | |
---|---|---|---|
$_logger | Horde_Log_Logger | Logger | |
$host | string | String containing name/IP address of IMSP host. | |
$lastRawError | string | String buffer containing the last raw NO or BAD response from the server. | |
$port | string | String containing port for IMSP server. |
Property | Type | Description | |
---|---|---|---|
$_authObj | Horde_Imsp_Auth | The auth object | |
$_commandCount | integer | Current command count | |
$_commandPrefix | string | Current command prefix | |
$_lastCommandTag | string | Command tag last used. | |
$_tag | string | Currently in-use command tag |
Method | Description | |
---|---|---|
__construct ( array $params ) | Constructor function. | |
authenticate ( boolean $login = true ) : boolean | Attempts to login to IMSP server. | |
capability ( ) : string | Returns the raw capability response from the server. | |
getServerResponseChunks ( ) : array |
Retrieves CRLF terminated response from server and splits it into
an array delimited by a |
|
logout ( ) | Close connection and logout from IMSP server. | |
quoteSpacedString ( string $string ) : string | Determines if a string needs to be quoted before sending to the server. | |
receive ( ) : mixed | Receives a single CRLF terminated server response string | |
receiveStringLiteral ( integer $length ) : string | Receives fixed number of bytes from IMSP socket. Used when server returns a string literal. | |
send ( string $commandText, boolean $includeTag = true, boolean $sendCRLF = true, boolean $continuation = false ) | Attempts to send a command to the server. |
Method | Description | |
---|---|---|
_getNextCommandTag ( ) : string | Increments the IMSP command tag token. |
authObjOptional parameters:The object to handle the authentication
serverThe IMSP host port The port the IMSP server listens on logger The logger.
public __construct ( array $params ) | ||
$params | array | Hash containing server parameters. |
protected _getNextCommandTag ( ) : string | ||
return | string | Next command tag. |
abstract public authenticate ( boolean $login = true ) : boolean | ||
$login | boolean | Should we remain logged in after auth? |
return | boolean |
abstract public capability ( ) : string | ||
return | string | The raw capability response. |
abstract public getServerResponseChunks ( ) : array | ||
return | array | The exploded string |
abstract public logout ( ) |
public static quoteSpacedString ( string $string ) : string | ||
$string | string | String to be tested. |
return | string | Original string, quoted if needed. |
abstract public receiveStringLiteral ( integer $length ) : string | ||
$length | integer | Number of bytes to read from socket. |
return | string | Text of string literal. |
abstract public send ( string $commandText, boolean $includeTag = true, boolean $sendCRLF = true, boolean $continuation = false ) | ||
$commandText | string | Text to send to the server. |
$includeTag | boolean | Determines if command tag is prepended. |
$sendCRLF | boolean | Determines if CRLF is appended. |
$continuation | boolean | Expect a command continuation response. |
protected Horde_Imsp_Auth $_authObj | ||
return | Horde_Imsp_Auth |
protected int $_commandCount | ||
return | integer |
protected string $_commandPrefix | ||
return | string |
protected string $_lastCommandTag | ||
return | string |
public string $host | ||
return | string |
public string $lastRawError | ||
return | string |