OpenSDN source code
|
#include <metadata_server.h>
Public Member Functions | |
MetadataServer (EventManager *evm) | |
virtual | ~MetadataServer () |
virtual SslSession * | AllocSession (SslSocket *socket) |
![]() | |
HttpServer (EventManager *evm, const SslConfig &config=SslConfig(), uint8_t dscp=0) | |
virtual | ~HttpServer () |
virtual bool | AcceptSession (SslSession *session) |
virtual bool | AcceptSession (TcpSession *session) |
void | RegisterHandler (const std::string &path, HttpHandlerFn handler) |
HttpHandlerFn | GetHandler (const std::string &path) |
void | Shutdown () |
void | UpdateDscp (uint8_t value) |
![]() | |
SslServer (EventManager *evm, boost::asio::ssl::context::method m, bool ssl_enabled=true, bool ssl_handshake_delayed=false) | |
virtual | ~SslServer () |
![]() | |
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 TcpSession * | CreateSession () |
virtual void | DeleteSession (TcpSession *session) |
virtual void | Connect (TcpSession *session, Endpoint remote) |
virtual bool | DisableSandeshLogMessages () const |
int | GetPort () const |
const io::SocketStats & | GetSocketStats () const |
size_t | GetSessionCount () const |
EventManager * | event_manager () |
bool | HasSessionReadAvailable () const |
bool | HasSessions () const |
TcpSession * | GetSession (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 | |
DISALLOW_COPY_AND_ASSIGN (MetadataServer) | |
Additional Inherited Members | |
![]() | |
typedef boost::function< void(HttpSession *session, const HttpRequest *)> | HttpHandlerFn |
![]() | |
typedef boost::asio::ssl::stream < boost::asio::ip::tcp::socket > | SslSocket |
![]() | |
typedef boost::asio::ip::tcp::endpoint | Endpoint |
typedef boost::asio::ip::tcp::socket | Socket |
typedef boost::asio::ip::tcp::socket::native_handle_type | NativeSocketType |
![]() | |
typedef boost::intrusive_ptr < TcpServer > | TcpServerPtr |
typedef boost::intrusive_ptr < TcpSession > | TcpSessionPtr |
![]() | |
boost::asio::ssl::context * | context () |
![]() | |
void | set_socket_open_failure (bool flag) |
bool | socket_open_failure () const |
Endpoint | LocalEndpoint () const |
Definition at line 11 of file metadata_server.h.
|
inline |
Definition at line 13 of file metadata_server.h.
|
inlinevirtual |
Definition at line 14 of file metadata_server.h.
|
inlinevirtual |
Reimplemented from HttpServer.
Definition at line 16 of file metadata_server.h.
|
private |