ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <ServerSocket.hpp>
Public Member Functions | |
ServerSocket (const anna::comm::INetAddress &localAddress, LocalServer *localServer) | |
Public Member Functions inherited from anna::comm::ServerSocket | |
ServerSocket (TransportFactory *transportFactory=NULL, Domain::_v domain=Socket::Domain::Inet, Type::_v type=Socket::Type::Stream) | |
ServerSocket (const INetAddress &localAddress, const bool sharedBind, TransportFactory *transportFactory=NULL) | |
virtual | ~ServerSocket () |
const Millisecond & | getBindDelay () |
BinderSocket * | getBinderSocket () |
bool | isSharedBind () const |
void | setBacklog (const int backlog) |
void | setBindDelay (const Millisecond &bindDelay) |
virtual void | prepare () noexcept(false) |
LocalConnection * | accept () noexcept(false) |
void | release (LocalConnection *localConnection) noexcept(false) |
iterator | begin () |
iterator | end () |
virtual std::string | asString () const |
virtual xml::Node * | asXML (xml::Node *parent) const noexcept(false) |
Public Member Functions inherited from anna::comm::Socket | |
virtual | ~Socket () |
int | getfd () const |
Type::_v | getType () const |
Domain::_v | getDomain () const |
int | getCategory () const |
bool | support (const char *transportClassName) const |
bool | isBound () const |
bool | isOpened () const |
virtual bool | isSecure () const |
const AccessPoint & | getLocalAccessPoint () const |
TransportFactory * | getTransportFactory () const |
ReceiverFactory * | getReceiverFactory () |
bool | setBlockingMode (const bool blockingMode) noexcept(false) |
bool | setReuseMode (const bool reuseMode) noexcept(false) |
void | setTransportFactory (TransportFactory *transportFactory) |
void | setReceiverFactory (ReceiverFactory &receiverFactory) |
void | setCategory (const int category) |
void | close () |
virtual void | bind () noexcept(false) |
Public Member Functions inherited from anna::Mutex | |
Mutex (const Mode::_v mode=Mode::Recursive) | |
virtual | ~Mutex () |
virtual void | lock () noexcept(false) |
virtual void | unlock () |
bool | trylock () noexcept(false) |
operator const pthread_mutex_t * () const | |
Additional Inherited Members | |
Public Types inherited from anna::comm::ServerSocket | |
typedef Recycler< LocalConnection >::iterator | iterator |
Static Public Member Functions inherited from anna::comm::ServerSocket | |
static LocalConnection * | localConnection (iterator &ii) |
static const char * | className () |
Static Public Attributes inherited from anna::comm::ServerSocket | |
static const Millisecond | DefaultBindDelay |
static const int | defaultBacklog = 30 |
Protected Member Functions inherited from anna::comm::ServerSocket | |
ServerSocket (const INetAddress &localAddress, const bool sharedBind, Type::_v type, TransportFactory *transportFactory=NULL) | |
Protected Member Functions inherited from anna::comm::Socket | |
Socket (const Domain::_v domain, const Type::_v type, TransportFactory *transportFactory=NULL) | |
Socket (const INetAddress &localAddress, const Type::_v type, TransportFactory *transportFactory=NULL) | |
Socket (const std::string &path, const Type::_v type, TransportFactory *transportFactory=NULL) | |
void | open () noexcept(false) |
virtual void | do_close () |
Protected Member Functions inherited from anna::Safe | |
Safe () | |
Static Protected Member Functions inherited from anna::comm::Socket | |
static const char * | asText (const Notify::_v v) |
Protected Attributes inherited from anna::comm::Socket | |
const Domain::_v | a_domain |
const Type::_v | a_type |
int | a_fd |
AccessPoint | a_localAccessPoint |
bool | a_isBound |
TransportFactory * | a_transportFactory |
ReceiverFactory * | a_receiverFactory |
int | a_category |
Diameter server socket
anna::diameter::comm::ServerSocket::ServerSocket | ( | const anna::comm::INetAddress & | localAddress, |
LocalServer * | localServer | ||
) |
Constructor
localAddress | Listen address |
localServer | Local access point |
engine | Diameter comm engine |