OpenSDN source code
|
#include <xmpp_channel.h>
Public Types | |
typedef boost::function< void(const boost::system::error_code &)> | SendReadyCb |
typedef boost::function< void(const XmppStanza::XmppMessage *, xmps::PeerState state) > | ReceiveCb |
typedef boost::function< bool(const std::string &, int, int, const std::string &, const XmppStanza::XmppMessage *msg) > | RxMessageTraceCb |
typedef boost::function< bool(const std::string &, int, int, const std::string &, const XmppStanza::XmppMessage *msg) > | TxMessageTraceCb |
Public Member Functions | |
virtual | ~XmppChannel () |
virtual bool | Send (const uint8_t *, size_t, xmps::PeerId, SendReadyCb)=0 |
virtual bool | Send (const uint8_t *msg, size_t msg_size, const std::string *msg_str, xmps::PeerId id, SendReadyCb cb) |
virtual int | GetTaskInstance () const =0 |
virtual void | RegisterReceive (xmps::PeerId, ReceiveCb)=0 |
virtual void | UnRegisterReceive (xmps::PeerId)=0 |
virtual void | RegisterReferer (xmps::PeerId) |
virtual void | UnRegisterReferer (xmps::PeerId) |
virtual void | RegisterRxMessageTraceCallback (RxMessageTraceCb cb)=0 |
virtual void | RegisterTxMessageTraceCallback (TxMessageTraceCb cb)=0 |
virtual void | UnRegisterWriteReady (xmps::PeerId id)=0 |
virtual void | Close ()=0 |
virtual const std::string & | ToString () const =0 |
virtual const std::string & | FromString () const =0 |
virtual std::string | StateName () const =0 |
virtual std::string | LastStateName () const =0 |
virtual std::string | LastStateChangeAt () const =0 |
virtual std::string | LastEvent () const =0 |
virtual uint32_t | rx_open () const =0 |
virtual uint32_t | rx_close () const =0 |
virtual uint32_t | rx_update () const =0 |
virtual uint32_t | rx_keepalive () const =0 |
virtual uint32_t | tx_open () const =0 |
virtual uint32_t | tx_close () const =0 |
virtual uint32_t | tx_update () const =0 |
virtual uint32_t | tx_keepalive () const =0 |
virtual uint32_t | FlapCount () const =0 |
virtual std::string | LastFlap () const =0 |
virtual xmps::PeerState | GetPeerState () const =0 |
virtual std::string | AuthType () const =0 |
virtual std::string | PeerAddress () const =0 |
virtual const XmppConnection * | connection () const =0 |
virtual XmppConnection * | connection ()=0 |
virtual bool | LastReceived (time_t duration) const =0 |
virtual bool | LastSent (time_t duration) const =0 |
Definition at line 32 of file xmpp_channel.h.
typedef boost::function< void(const XmppStanza::XmppMessage *, xmps::PeerState state) > XmppChannel::ReceiveCb |
Definition at line 38 of file xmpp_channel.h.
typedef boost::function<bool(const std::string &, int, int, const std::string &, const XmppStanza::XmppMessage * msg) > XmppChannel::RxMessageTraceCb |
Definition at line 44 of file xmpp_channel.h.
typedef boost::function<void(const boost::system::error_code &)> XmppChannel::SendReadyCb |
Definition at line 35 of file xmpp_channel.h.
typedef boost::function<bool(const std::string &, int, int, const std::string &, const XmppStanza::XmppMessage * msg) > XmppChannel::TxMessageTraceCb |
Definition at line 50 of file xmpp_channel.h.
|
inlinevirtual |
Definition at line 52 of file xmpp_channel.h.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
inlinevirtual |
Reimplemented in XmppChannelMux.
Definition at line 63 of file xmpp_channel.h.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
inlinevirtual |
Reimplemented in XmppChannelMux.
Definition at line 55 of file xmpp_channel.h.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
pure virtual |
Implemented in XmppChannelMux.
|
inlinevirtual |
Reimplemented in XmppChannelMux.
Definition at line 64 of file xmpp_channel.h.
|
pure virtual |
Implemented in XmppChannelMux.