Qore TelnetClient Module Reference  1.3
 All Classes Namespaces Functions Variables Groups Pages
TelnetClient::TelnetConnection Class Reference

class for Telnet connections; returns an object of class TelnetClient for connecting to telnet sessions More...

Inheritance diagram for TelnetClient::TelnetConnection:

Public Member Functions

 constructor (string name, string desc, string url, bool monitor, *hash opts, hash urlh)
 creates the TelnetConnection object More...
 
*hash getRuntimeOptions ()
 returns runtime options More...
 
string getType ()
 returns "telnet"
 

Static Public Member Functions

static TelnetConnection make (string name, string desc, string url, bool monitor, *hash opts, hash urlh)
 static constructor
 

Private Member Functions

TelnetClient getImpl (bool connect=True, *hash rtopts)
 returns an TelnetClient object More...
 

Detailed Description

class for Telnet connections; returns an object of class TelnetClient for connecting to telnet sessions

supports the following runtime options in getImpl() for connection logging:

  • "log": a closure accepting a single string for logging
  • "dbglog": a closure taking a single string for detailed technical connection logging
Since
TelnetClient 1.3

Member Function Documentation

TelnetClient::TelnetConnection::constructor ( string  name,
string  desc,
string  url,
bool  monitor,
*hash  opts,
hash  urlh 
)

creates the TelnetConnection object

Parameters
namethe name of the connection
descconnection description
urlconnection URL
monitormonitoring flag
optsconnection options
urlhbroken down URL hash (as returned by Qore::parse_url())
TelnetClient TelnetClient::TelnetConnection::getImpl ( bool  connect = True,
*hash  rtopts 
)
privatevirtual

returns an TelnetClient object

Parameters
connectif True, then TelnetClient::connect() is called
rtoptssupports the following runtime options in getImpl() for connection logging:
  • "log": a closure accepting a single string for logging
  • "dbglog": a closure taking a single string for detailed technical connection logging
Returns
an TelnetClient object

Implements ConnectionProvider::AbstractConnection.

*hash TelnetClient::TelnetConnection::getRuntimeOptions ( )

returns runtime options

Returns
a hash with the following keys reflecting support for the corresponding runtime options in getImpl() for connection logging:
  • "log": a closure accepting a single string for logging
  • "dbglog": a closure taking a single string for detailed technical connection logging