OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XmppClientConnection Class Reference

#include <xmpp_connection.h>

Inheritance diagram for XmppClientConnection:
Collaboration diagram for XmppClientConnection:

Classes

class  DeleteActor
 

Public Member Functions

 XmppClientConnection (XmppClient *server, const XmppChannelConfig *config)
 
virtual ~XmppClientConnection ()
 
virtual void ManagedDelete ()
 
virtual void RetryDelete ()
 
virtual LifetimeActordeleter ()
 
virtual const LifetimeActordeleter () const
 
virtual LifetimeManagerlifetime_manager ()
 
XmppClientserver ()
 
virtual void set_close_reason (const std::string &reason)
 
virtual uint32_t flap_count () const
 
virtual void increment_flap_count ()
 
virtual const std::string last_flap_at () const
 
- Public Member Functions inherited from XmppConnection
 XmppConnection (TcpServer *server, const XmppChannelConfig *config)
 
virtual ~XmppConnection ()
 
void SetConfig (const XmppChannelConfig *)
 
virtual bool AcceptSession (XmppSession *session)
 
virtual void ReceiveMsg (XmppSession *session, const std::string &)
 
virtual
boost::asio::ip::tcp::endpoint 
endpoint () const
 
virtual
boost::asio::ip::tcp::endpoint 
local_endpoint () const
 
std::string endpoint_string () const
 
std::string local_endpoint_string () const
 
TcpServerserver ()
 
XmppSessionCreateSession ()
 
int GetTaskInstance () const
 
const std::string & ToUVEKey () const
 
const std::string & ToString () const
 
const std::string & FromString () const
 
void SetAdminDown (bool toggle)
 
bool Send (const uint8_t *data, size_t size, const std::string *msg_str=NULL)
 
virtual bool SendOpen (XmppSession *session)
 
virtual bool SendOpenConfirm (XmppSession *session)
 
virtual bool SendStreamFeatureRequest (XmppSession *session)
 
virtual bool SendStartTls (XmppSession *session)
 
virtual bool SendProceedTls (XmppSession *session)
 
void SendKeepAlive ()
 
void SendClose (XmppSession *session)
 
void ProcessSslHandShakeResponse (SslSessionPtr session, const boost::system::error_code &error)
 
int ProcessXmppIqMessage (const XmppStanza::XmppMessage *)
 
int ProcessXmppChatMessage (const XmppStanza::XmppChatMessage *)
 
void StartKeepAliveTimer ()
 
void StopKeepAliveTimer ()
 
void UpdateKeepAliveTimer (uint8_t time_out)
 
void set_session (XmppSession *session)
 
void clear_session ()
 
void SetTo (const std::string &)
 
const XmppSessionsession () const
 
XmppSessionsession ()
 
bool logUVE () const
 
bool IsClient () const
 
xmsm::XmState GetStateMcState () const
 
xmsm::XmOpenConfirmState GetStateMcOpenConfirmState () const
 
bool IsActiveChannel () const
 
XmppChannelMuxChannelMux ()
 
void SetChannelMux (XmppChannelMux *channel_mux)
 
void Initialize ()
 
void Clear ()
 
void SetAdminState (bool down)
 
void Shutdown ()
 
bool MayDelete () const
 
bool IsDeleted () const
 
std::string & GetComputeHostName ()
 
std::string & GetControllerHostName ()
 
std::string & GetFrom ()
 
std::string & GetTo ()
 
virtual void WriteReady ()
 
int GetConfiguredHoldTime () const
 
int GetNegotiatedHoldTime () const
 
std::string StateName () const
 
std::string LastStateName () const
 
std::string LastStateChangeAt () const
 
std::string LastEvent () const
 
uint32_t tx_open () const
 
uint32_t tx_keepalive () const
 
uint32_t tx_close () const
 
uint32_t tx_update () const
 
uint32_t rx_open () const
 
uint32_t rx_keepalive () const
 
uint32_t rx_close () const
 
uint32_t rx_update () const
 
void LogMsg (std::string msg)
 
bool disable_read () const
 
void set_disable_read (bool disable_read)
 
XmppStateMachinestate_machine ()
 
const XmppStateMachinestate_machine () const
 
void set_state_machine (XmppStateMachine *state_machine)
 
void SwapXmppStateMachine (XmppConnection *other)
 
uint8_t dscp_value () const
 
int SetDscpValue (uint8_t value)
 
void inc_connect_error ()
 
void inc_session_close ()
 
void inc_open_fail ()
 
void inc_stream_feature_fail ()
 
void inc_handshake_failure ()
 
size_t get_connect_error ()
 
size_t get_session_close ()
 
size_t get_open_fail ()
 
size_t get_stream_feature_fail ()
 
size_t get_handshake_failure ()
 
size_t get_sm_connect_attempts ()
 
size_t get_sm_keepalive_count ()
 
std::string GetXmppAuthenticationType () const
 
void SwapContents (XmppConnection *other)
 
boost::asio::ip::tcp::endpoint & endpoint ()
 
const Timerkeepalive_timer () const
 

Private Attributes

std::string close_reason_
 
uint32_t flap_count_
 
uint64_t last_flap_
 
boost::scoped_ptr< DeleteActordeleter_
 
LifetimeRef< XmppClientConnectionserver_delete_ref_
 

Additional Inherited Members

- Static Public Attributes inherited from XmppConnection
static const char * kAuthTypeNil = "NIL"
 
static const char * kAuthTypeTls = "TLS"
 
- Protected Member Functions inherited from XmppConnection
const XmppChannelMuxchannel_mux () const
 
- Protected Attributes inherited from XmppConnection
TcpServerserver_
 
XmppSessionsession_
 

Detailed Description

Definition at line 323 of file xmpp_connection.h.

Constructor & Destructor Documentation

XmppClientConnection::XmppClientConnection ( XmppClient server,
const XmppChannelConfig config 
)

Definition at line 858 of file xmpp_connection.cc.

Here is the call graph for this function:

XmppClientConnection::~XmppClientConnection ( )
virtual

Definition at line 869 of file xmpp_connection.cc.

Here is the call graph for this function:

Member Function Documentation

LifetimeActor * XmppClientConnection::deleter ( )
virtual

Implements XmppConnection.

Definition at line 897 of file xmpp_connection.cc.

const LifetimeActor * XmppClientConnection::deleter ( ) const
virtual

Implements XmppConnection.

Definition at line 901 of file xmpp_connection.cc.

uint32_t XmppClientConnection::flap_count ( ) const
virtual

Implements XmppConnection.

Definition at line 916 of file xmpp_connection.cc.

void XmppClientConnection::increment_flap_count ( )
virtual

Implements XmppConnection.

Definition at line 920 of file xmpp_connection.cc.

Here is the call graph for this function:

const std::string XmppClientConnection::last_flap_at ( ) const
virtual

Implements XmppConnection.

Definition at line 936 of file xmpp_connection.cc.

Here is the call graph for this function:

LifetimeManager * XmppClientConnection::lifetime_manager ( )
virtual

Implements XmppConnection.

Definition at line 889 of file xmpp_connection.cc.

Here is the call graph for this function:

void XmppClientConnection::ManagedDelete ( )
virtual

Implements XmppConnection.

Definition at line 877 of file xmpp_connection.cc.

Here is the call graph for this function:

void XmppClientConnection::RetryDelete ( )
virtual

Implements XmppConnection.

Definition at line 883 of file xmpp_connection.cc.

Here is the call graph for this function:

XmppClient * XmppClientConnection::server ( )

Definition at line 893 of file xmpp_connection.cc.

void XmppClientConnection::set_close_reason ( const std::string &  reason)
virtual

Implements XmppConnection.

Definition at line 905 of file xmpp_connection.cc.

Here is the call graph for this function:

Member Data Documentation

std::string XmppClientConnection::close_reason_
private

Definition at line 341 of file xmpp_connection.h.

boost::scoped_ptr<DeleteActor> XmppClientConnection::deleter_
private

Definition at line 346 of file xmpp_connection.h.

uint32_t XmppClientConnection::flap_count_
private

Definition at line 344 of file xmpp_connection.h.

uint64_t XmppClientConnection::last_flap_
private

Definition at line 345 of file xmpp_connection.h.

LifetimeRef<XmppClientConnection> XmppClientConnection::server_delete_ref_
private

Definition at line 347 of file xmpp_connection.h.


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