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

#include <xmpp_connection.h>

Inheritance diagram for XmppServerConnection:
Collaboration diagram for XmppServerConnection:

Classes

class  DeleteActor
 

Public Member Functions

 XmppServerConnection (XmppServer *server, const XmppChannelConfig *config)
 
virtual ~XmppServerConnection ()
 
virtual void ManagedDelete ()
 
virtual void RetryDelete ()
 
virtual LifetimeActordeleter ()
 
virtual const LifetimeActordeleter () const
 
virtual LifetimeManagerlifetime_manager ()
 
XmppServerserver ()
 
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
 
bool duplicate () const
 
void set_duplicate ()
 
bool on_work_queue () const
 
void set_on_work_queue ()
 
void clear_on_work_queue ()
 
XmppConnectionEndpointconn_endpoint ()
 
void set_conn_endpoint (XmppConnectionEndpoint *conn_endpoint)
 
void FillShowInfo (ShowXmppConnection *show_connection) 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

bool duplicate_
 
bool on_work_queue_
 
XmppConnectionEndpointconn_endpoint_
 
boost::scoped_ptr< DeleteActordeleter_
 
LifetimeRef< XmppServerConnectionserver_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 283 of file xmpp_connection.h.

Constructor & Destructor Documentation

XmppServerConnection::XmppServerConnection ( XmppServer server,
const XmppChannelConfig config 
)

Definition at line 717 of file xmpp_connection.cc.

Here is the call graph for this function:

XmppServerConnection::~XmppServerConnection ( )
virtual

Definition at line 730 of file xmpp_connection.cc.

Here is the call graph for this function:

Member Function Documentation

void XmppServerConnection::clear_on_work_queue ( )
inline

Definition at line 305 of file xmpp_connection.h.

XmppConnectionEndpoint* XmppServerConnection::conn_endpoint ( )
inline

Definition at line 307 of file xmpp_connection.h.

LifetimeActor * XmppServerConnection::deleter ( )
virtual

Implements XmppConnection.

Definition at line 758 of file xmpp_connection.cc.

const LifetimeActor * XmppServerConnection::deleter ( ) const
virtual

Implements XmppConnection.

Definition at line 762 of file xmpp_connection.cc.

bool XmppServerConnection::duplicate ( ) const
inline

Definition at line 300 of file xmpp_connection.h.

void XmppServerConnection::FillShowInfo ( ShowXmppConnection *  show_connection) const

Definition at line 807 of file xmpp_connection.cc.

Here is the call graph for this function:

uint32_t XmppServerConnection::flap_count ( ) const
virtual

Implements XmppConnection.

Definition at line 779 of file xmpp_connection.cc.

Here is the call graph for this function:

void XmppServerConnection::increment_flap_count ( )
virtual

Implements XmppConnection.

Definition at line 783 of file xmpp_connection.cc.

Here is the call graph for this function:

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

Implements XmppConnection.

Definition at line 803 of file xmpp_connection.cc.

Here is the call graph for this function:

LifetimeManager * XmppServerConnection::lifetime_manager ( )
virtual

Implements XmppConnection.

Definition at line 750 of file xmpp_connection.cc.

Here is the call graph for this function:

void XmppServerConnection::ManagedDelete ( )
virtual

Implements XmppConnection.

Definition at line 738 of file xmpp_connection.cc.

Here is the call graph for this function:

bool XmppServerConnection::on_work_queue ( ) const
inline

Definition at line 303 of file xmpp_connection.h.

void XmppServerConnection::RetryDelete ( )
virtual

Implements XmppConnection.

Definition at line 744 of file xmpp_connection.cc.

Here is the call graph for this function:

XmppServer * XmppServerConnection::server ( )

Definition at line 754 of file xmpp_connection.cc.

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

Implements XmppConnection.

Definition at line 766 of file xmpp_connection.cc.

Here is the call graph for this function:

void XmppServerConnection::set_conn_endpoint ( XmppConnectionEndpoint conn_endpoint)
inline

Definition at line 308 of file xmpp_connection.h.

Here is the call graph for this function:

void XmppServerConnection::set_duplicate ( )
inline

Definition at line 301 of file xmpp_connection.h.

void XmppServerConnection::set_on_work_queue ( )
inline

Definition at line 304 of file xmpp_connection.h.

Member Data Documentation

XmppConnectionEndpoint* XmppServerConnection::conn_endpoint_
private

Definition at line 318 of file xmpp_connection.h.

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

Definition at line 319 of file xmpp_connection.h.

bool XmppServerConnection::duplicate_
private

Definition at line 314 of file xmpp_connection.h.

bool XmppServerConnection::on_work_queue_
private

Definition at line 317 of file xmpp_connection.h.

LifetimeRef<XmppServerConnection> XmppServerConnection::server_delete_ref_
private

Definition at line 320 of file xmpp_connection.h.


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