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

#include <xmpp_connection_manager.h>

Inheritance diagram for XmppConnectionManager:
Collaboration diagram for XmppConnectionManager:

Public Member Functions

 XmppConnectionManager (EventManager *evm, boost::asio::ssl::context::method m, bool ssl_enabled, bool ssl_handshake_delayed)
 
void Shutdown ()
 
void EnqueueSession (XmppSession *session)
 
size_t GetSessionQueueSize () const
 
virtual LifetimeActordeleter ()=0
 
tbb::mutex & mutex () const
 
- Public Member Functions inherited from SslServer
 SslServer (EventManager *evm, boost::asio::ssl::context::method m, bool ssl_enabled=true, bool ssl_handshake_delayed=false)
 
virtual ~SslServer ()
 
- Public Member Functions inherited from TcpServer
 TcpServer (EventManager *evm)
 
virtual ~TcpServer ()
 
virtual bool Initialize (unsigned short port)
 
virtual bool Initialize (unsigned short port, const IpAddress &host_ip, int intf_id=-1)
 
bool InitializeInternal (boost::asio::ip::tcp::endpoint localaddr)
 
const std::string ToString () const
 
void SetAcceptor ()
 
void ResetAcceptor ()
 
void Shutdown ()
 
void ClearSessions ()
 
void UpdateSessionsDscp (uint8_t dscp)
 
virtual TcpSessionCreateSession ()
 
virtual void DeleteSession (TcpSession *session)
 
virtual void Connect (TcpSession *session, Endpoint remote)
 
virtual bool DisableSandeshLogMessages () const
 
int GetPort () const
 
const io::SocketStatsGetSocketStats () const
 
size_t GetSessionCount () const
 
EventManagerevent_manager ()
 
bool HasSessionReadAvailable () const
 
bool HasSessions () const
 
TcpSessionGetSession (Endpoint remote)
 
void WaitForEmpty ()
 
void GetRxSocketStats (SocketIOStats *socket_stats) const
 
void GetTxSocketStats (SocketIOStats *socket_stats) const
 
void GetRxSocketStats (SocketIOStats &socket_stats) const
 
void GetTxSocketStats (SocketIOStats &socket_stats) const
 
int SetMd5SocketOption (NativeSocketType fd, uint32_t peer_ip, const std::string &md5_password)
 
int SetListenSocketMd5Option (uint32_t peer_ip, const std::string &md5_password)
 
int SetDscpSocketOption (NativeSocketType fd, uint8_t value)
 
uint8_t GetDscpValue (NativeSocketType fd) const
 
int SetListenSocketDscp (uint8_t value)
 
int SetSocketOptions (const SandeshConfig &sandesh_config)
 
int SetKeepAliveSocketOption (int fd, const SandeshConfig &sandesh_config)
 

Private Member Functions

bool DequeueSession (TcpSessionPtr tcp_session)
 
void WorkQueueExitCallback (bool done)
 
 DISALLOW_COPY_AND_ASSIGN (XmppConnectionManager)
 

Private Attributes

WorkQueue< TcpSessionPtrsession_queue_
 
tbb::mutex mutex_
 

Additional Inherited Members

- Public Types inherited from SslServer
typedef
boost::asio::ssl::stream
< boost::asio::ip::tcp::socket > 
SslSocket
 
- Public Types inherited from TcpServer
typedef
boost::asio::ip::tcp::endpoint 
Endpoint
 
typedef
boost::asio::ip::tcp::socket 
Socket
 
typedef
boost::asio::ip::tcp::socket::native_handle_type 
NativeSocketType
 
- Protected Types inherited from TcpServer
typedef boost::intrusive_ptr
< TcpServer
TcpServerPtr
 
typedef boost::intrusive_ptr
< TcpSession
TcpSessionPtr
 
- Protected Member Functions inherited from SslServer
virtual SslSessionAllocSession (SslSocket *socket)=0
 
boost::asio::ssl::context * context ()
 
- Protected Member Functions inherited from TcpServer
virtual bool AcceptSession (TcpSession *session)
 
void set_socket_open_failure (bool flag)
 
bool socket_open_failure () const
 
Endpoint LocalEndpoint () const
 

Detailed Description

Definition at line 17 of file xmpp_connection_manager.h.

Constructor & Destructor Documentation

XmppConnectionManager::XmppConnectionManager ( EventManager evm,
boost::asio::ssl::context::method  m,
bool  ssl_enabled,
bool  ssl_handshake_delayed 
)

Definition at line 16 of file xmpp_connection_manager.cc.

Member Function Documentation

virtual LifetimeActor* XmppConnectionManager::deleter ( )
pure virtual

Implemented in XmppClient, and XmppServer.

bool XmppConnectionManager::DequeueSession ( TcpSessionPtr  tcp_session)
private

Definition at line 57 of file xmpp_connection_manager.cc.

Here is the call graph for this function:

XmppConnectionManager::DISALLOW_COPY_AND_ASSIGN ( XmppConnectionManager  )
private
void XmppConnectionManager::EnqueueSession ( XmppSession session)

Definition at line 44 of file xmpp_connection_manager.cc.

Here is the call graph for this function:

size_t XmppConnectionManager::GetSessionQueueSize ( ) const

Definition at line 77 of file xmpp_connection_manager.cc.

Here is the call graph for this function:

tbb::mutex& XmppConnectionManager::mutex ( ) const
inline

Definition at line 27 of file xmpp_connection_manager.h.

void XmppConnectionManager::Shutdown ( void  )

Definition at line 30 of file xmpp_connection_manager.cc.

Here is the call graph for this function:

void XmppConnectionManager::WorkQueueExitCallback ( bool  done)
private

Definition at line 67 of file xmpp_connection_manager.cc.

Here is the call graph for this function:

Member Data Documentation

tbb::mutex XmppConnectionManager::mutex_
mutableprivate

Definition at line 34 of file xmpp_connection_manager.h.

WorkQueue<TcpSessionPtr> XmppConnectionManager::session_queue_
private

Definition at line 33 of file xmpp_connection_manager.h.


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