Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

gnash::SSHClient Class Reference

#include <sshclient.h>

Inheritance diagram for gnash::SSHClient:
gnash::SSHServer gnash::SSHServer

List of all members.

Public Types

enum  authtype_t {
  NO_AUTHTYPE, DSS, RSA, NO_AUTHTYPE,
  DSS, RSA
}
enum  transport_type_t {
  NO_TRANSPORT, RAW, SFTP, NO_TRANSPORT,
  RAW, SFTP
}
enum  authtype_t {
  NO_AUTHTYPE, DSS, RSA, NO_AUTHTYPE,
  DSS, RSA
}
enum  transport_type_t {
  NO_TRANSPORT, RAW, SFTP, NO_TRANSPORT,
  RAW, SFTP
}

Public Member Functions

 SSHClient ()
 ~SSHClient ()
int sshRead (amf::Buffer &buf)
int sshRead (boost::uint8_t *buf, size_t length)
int sshRead (std::string &buf)
int sshWrite (amf::Buffer &buf)
int sshWrite (const boost::uint8_t *buf, size_t length)
int sshWrite (std::string &buf)
bool sshShutdown ()
bool sshConnect (int fd)
bool sshConnect (int fd, std::string &hostname)
void setUser ()
void setUser (std::string name)
std::string & getUser ()
void setPassword (std::string pw)
std::string & getPassword ()
void setHostname (std::string name)
std::string & getHostname ()
void setServerAuth (bool flag)
bool getServerAuth ()
void setAuthType (authtype_t type)
authtype_t getAuthType ()
void setTransportType (transport_type_t type)
transport_type_t getTransportType ()
int authKbdint ()
int authKbdint (ssh_session)
ssh_channel openChannel ()
ssh_channel openChannel (ssh_session session)
void closeChannel ()
void closeChannel (ssh_channel channel)
ssh_channel getChannel ()
ssh_session getSession ()
boost::shared_ptr< amf::Buffer > & getBuffer ()
void dump ()
 SSHClient ()
 ~SSHClient ()
int sshRead (amf::Buffer &buf)
int sshRead (boost::uint8_t *buf, size_t length)
int sshRead (std::string &buf)
int sshWrite (amf::Buffer &buf)
int sshWrite (const boost::uint8_t *buf, size_t length)
int sshWrite (std::string &buf)
bool sshShutdown ()
bool sshConnect (int fd)
bool sshConnect (int fd, std::string &hostname)
void setUser ()
void setUser (std::string name)
std::string & getUser ()
void setPassword (std::string pw)
std::string & getPassword ()
void setHostname (std::string name)
std::string & getHostname ()
void setServerAuth (bool flag)
bool getServerAuth ()
void setAuthType (authtype_t type)
authtype_t getAuthType ()
void setTransportType (transport_type_t type)
transport_type_t getTransportType ()
int authKbdint ()
int authKbdint (ssh_session)
ssh_channel openChannel ()
ssh_channel openChannel (ssh_session session)
void closeChannel ()
void closeChannel (ssh_channel channel)
ssh_channel getChannel ()
ssh_session getSession ()
boost::shared_ptr< amf::Buffer > & getBuffer ()
void dump ()

Protected Member Functions

int readChannel (ssh_channel channel, amf::Buffer &buf)
int writeChannel (ssh_channel channel, amf::Buffer &buf)
int readChannel (ssh_channel channel, amf::Buffer &buf)
int writeChannel (ssh_channel channel, amf::Buffer &buf)

Protected Attributes

std::string _hostname
std::string _user
std::string _password
bool _need_server_auth
authtype_t _authtype
transport_type_t _transporttype
int _state
ssh_session _session
ssh_channel _channel
boost::shared_ptr< amf::Buffer > _buffer

Member Enumeration Documentation

Enumerator:
NO_AUTHTYPE 
DSS 
RSA 
NO_AUTHTYPE 
DSS 
RSA 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.

Enumerator:
NO_AUTHTYPE 
DSS 
RSA 
NO_AUTHTYPE 
DSS 
RSA 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.

Enumerator:
NO_TRANSPORT 
RAW 
SFTP 
NO_TRANSPORT 
RAW 
SFTP 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.

Enumerator:
NO_TRANSPORT 
RAW 
SFTP 
NO_TRANSPORT 
RAW 
SFTP 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.


Constructor & Destructor Documentation

gnash::SSHClient::SSHClient (  ) 

References setUser().

gnash::SSHClient::~SSHClient (  ) 

References sshShutdown().

gnash::SSHClient::SSHClient (  ) 
gnash::SSHClient::~SSHClient (  ) 

Member Function Documentation

int gnash::SSHClient::authKbdint (  ) 

References _session.

Referenced by sshConnect().

int gnash::SSHClient::authKbdint ( ssh_session  session  ) 

References name.

int gnash::SSHClient::authKbdint (  ) 
int gnash::SSHClient::authKbdint ( ssh_session   ) 
void gnash::SSHClient::closeChannel (  ) 

References _channel.

void gnash::SSHClient::closeChannel ( ssh_channel  channel  ) 

References _channel.

void gnash::SSHClient::closeChannel (  ) 
void gnash::SSHClient::closeChannel ( ssh_channel  channel  ) 
void gnash::SSHClient::dump (  ) 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.

References _.

void gnash::SSHClient::dump (  ) 

Reimplemented in gnash::SSHServer, and gnash::SSHServer.

authtype_t gnash::SSHClient::getAuthType (  )  [inline]
authtype_t gnash::SSHClient::getAuthType (  )  [inline]
boost::shared_ptr<amf::Buffer>& gnash::SSHClient::getBuffer (  )  [inline]

References _buffer.

boost::shared_ptr<amf::Buffer>& gnash::SSHClient::getBuffer (  )  [inline]

References _buffer.

ssh_channel gnash::SSHClient::getChannel (  )  [inline]
ssh_channel gnash::SSHClient::getChannel (  )  [inline]
std::string& gnash::SSHClient::getHostname (  )  [inline]
std::string& gnash::SSHClient::getHostname (  )  [inline]
std::string& gnash::SSHClient::getPassword (  )  [inline]
std::string& gnash::SSHClient::getPassword (  )  [inline]
bool gnash::SSHClient::getServerAuth (  )  [inline]
bool gnash::SSHClient::getServerAuth (  )  [inline]
ssh_session gnash::SSHClient::getSession (  )  [inline]
ssh_session gnash::SSHClient::getSession (  )  [inline]
transport_type_t gnash::SSHClient::getTransportType (  )  [inline]
transport_type_t gnash::SSHClient::getTransportType (  )  [inline]
std::string& gnash::SSHClient::getUser (  )  [inline]
std::string& gnash::SSHClient::getUser (  )  [inline]
ssh_channel gnash::SSHClient::openChannel (  ) 

References _session.

ssh_channel gnash::SSHClient::openChannel ( ssh_session  session  ) 

References _channel.

ssh_channel gnash::SSHClient::openChannel (  ) 
ssh_channel gnash::SSHClient::openChannel ( ssh_session  session  ) 
int gnash::SSHClient::readChannel ( ssh_channel  channel,
amf::Buffer &  buf 
) [protected]
int gnash::SSHClient::readChannel ( ssh_channel  channel,
amf::Buffer &  buf 
) [protected]
void gnash::SSHClient::setAuthType ( authtype_t  type  )  [inline]
void gnash::SSHClient::setAuthType ( authtype_t  type  )  [inline]
void gnash::SSHClient::setHostname ( std::string  name  )  [inline]
void gnash::SSHClient::setHostname ( std::string  name  )  [inline]
void gnash::SSHClient::setPassword ( std::string  pw  )  [inline]
void gnash::SSHClient::setPassword ( std::string  pw  )  [inline]
void gnash::SSHClient::setServerAuth ( bool  flag  )  [inline]
void gnash::SSHClient::setServerAuth ( bool  flag  )  [inline]
void gnash::SSHClient::setTransportType ( transport_type_t  type  )  [inline]
void gnash::SSHClient::setTransportType ( transport_type_t  type  )  [inline]
void gnash::SSHClient::setUser ( std::string  name  )  [inline]
void gnash::SSHClient::setUser (  ) 
void gnash::SSHClient::setUser ( std::string  name  )  [inline]
void gnash::SSHClient::setUser (  ) 

References _user.

Referenced by SSHClient(), and gnash::SSHServer::SSHServer().

bool gnash::SSHClient::sshConnect ( int  fd,
std::string &  hostname 
)
bool gnash::SSHClient::sshConnect ( int  fd  ) 

References _hostname.

bool gnash::SSHClient::sshConnect ( int  fd,
std::string &  hostname 
)
bool gnash::SSHClient::sshConnect ( int  fd  ) 
int gnash::SSHClient::sshRead ( boost::uint8_t *  buf,
size_t  length 
)
int gnash::SSHClient::sshRead ( amf::Buffer &  buf  ) 
int gnash::SSHClient::sshRead ( boost::uint8_t *  buf,
size_t  length 
)

References _channel, and _session.

int gnash::SSHClient::sshRead ( amf::Buffer &  buf  ) 
int gnash::SSHClient::sshRead ( std::string &  buf  ) 
int gnash::SSHClient::sshRead ( std::string &  buf  ) 
bool gnash::SSHClient::sshShutdown (  ) 
bool gnash::SSHClient::sshShutdown (  ) 
int gnash::SSHClient::sshWrite ( const boost::uint8_t *  buf,
size_t  length 
)
int gnash::SSHClient::sshWrite ( amf::Buffer &  buf  ) 
int gnash::SSHClient::sshWrite ( amf::Buffer &  buf  ) 
int gnash::SSHClient::sshWrite ( const boost::uint8_t *  buf,
size_t  length 
)

References _channel, and _session.

int gnash::SSHClient::sshWrite ( std::string &  buf  ) 
int gnash::SSHClient::sshWrite ( std::string &  buf  ) 
int gnash::SSHClient::writeChannel ( ssh_channel  channel,
amf::Buffer &  buf 
) [protected]
int gnash::SSHClient::writeChannel ( ssh_channel  channel,
amf::Buffer &  buf 
) [protected]

Member Data Documentation

boost::shared_ptr< amf::Buffer > gnash::SSHClient::_buffer [protected]
std::string gnash::SSHClient::_hostname [protected]

Referenced by sshConnect().

std::string gnash::SSHClient::_password [protected]
ssh_session gnash::SSHClient::_session [protected]
int gnash::SSHClient::_state [protected]

Referenced by sshConnect().

std::string gnash::SSHClient::_user [protected]

Referenced by setUser(), and sshConnect().


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