#include <tcp_server.h>
|
| typedef boost::asio::ip::tcp::endpoint | Endpoint |
| |
| typedef boost::asio::ip::tcp::socket | Socket |
| |
| typedef boost::asio::ip::tcp::socket::native_handle_type | NativeSocketType |
| |
Definition at line 28 of file tcp_server.h.
◆ Endpoint
◆ NativeSocketType
◆ SessionMap
◆ SessionSet
◆ Socket
◆ TcpServerPtr
◆ TcpSessionPtr
◆ TcpServer()
◆ ~TcpServer()
| TcpServer::~TcpServer |
( |
| ) |
|
|
virtual |
◆ accept_socket()
◆ AcceptHandlerComplete()
◆ AcceptHandlerInternal()
| void TcpServer::AcceptHandlerInternal |
( |
TcpServerPtr |
server, |
|
|
const boost::system::error_code & |
error |
|
) |
| |
|
private |
◆ AcceptSession()
| bool TcpServer::AcceptSession |
( |
TcpSession * |
session | ) |
|
|
protectedvirtual |
◆ AllocSession() [1/2]
| TcpSession * TcpServer::AllocSession |
( |
bool |
server_session | ) |
|
|
protectedvirtual |
◆ AllocSession() [2/2]
◆ AsyncAccept()
| void TcpServer::AsyncAccept |
( |
| ) |
|
|
private |
◆ ClearSessions()
| void TcpServer::ClearSessions |
( |
| ) |
|
◆ Connect()
◆ ConnectHandler()
◆ ConnectHandlerComplete()
◆ CreateSession()
◆ DeleteSession()
| void TcpServer::DeleteSession |
( |
TcpSession * |
session | ) |
|
|
virtual |
◆ DisableSandeshLogMessages()
| virtual bool TcpServer::DisableSandeshLogMessages |
( |
| ) |
const |
|
inlinevirtual |
◆ DISALLOW_COPY_AND_ASSIGN()
| TcpServer::DISALLOW_COPY_AND_ASSIGN |
( |
TcpServer |
| ) |
|
|
private |
◆ event_manager()
◆ GetDscpValue()
◆ GetPort()
| int TcpServer::GetPort |
( |
| ) |
const |
◆ GetRxSocketStats() [1/2]
| void TcpServer::GetRxSocketStats |
( |
SocketIOStats & |
socket_stats | ) |
const |
|
inline |
◆ GetRxSocketStats() [2/2]
| void TcpServer::GetRxSocketStats |
( |
SocketIOStats * |
socket_stats | ) |
const |
◆ GetSession()
◆ GetSessionCount()
| size_t TcpServer::GetSessionCount |
( |
| ) |
const |
|
inline |
◆ GetSocketStats()
◆ GetTxSocketStats() [1/2]
| void TcpServer::GetTxSocketStats |
( |
SocketIOStats & |
socket_stats | ) |
const |
|
inline |
◆ GetTxSocketStats() [2/2]
| void TcpServer::GetTxSocketStats |
( |
SocketIOStats * |
socket_stats | ) |
const |
◆ HasSessionReadAvailable()
| bool TcpServer::HasSessionReadAvailable |
( |
| ) |
const |
◆ HasSessions()
| bool TcpServer::HasSessions |
( |
| ) |
const |
◆ Initialize() [1/2]
| bool TcpServer::Initialize |
( |
unsigned short |
port | ) |
|
|
virtual |
◆ Initialize() [2/2]
| bool TcpServer::Initialize |
( |
unsigned short |
port, |
|
|
const IpAddress & |
host_ip, |
|
|
int |
intf_id = -1 |
|
) |
| |
|
virtual |
◆ InitializeInternal()
| bool TcpServer::InitializeInternal |
( |
boost::asio::ip::tcp::endpoint |
localaddr | ) |
|
◆ InsertSessionToMap()
◆ LocalEndpoint()
◆ OnSessionClose()
| void TcpServer::OnSessionClose |
( |
TcpSession * |
session | ) |
|
|
private |
◆ RemoveSessionFromMap()
◆ ResetAcceptor()
| void TcpServer::ResetAcceptor |
( |
| ) |
|
◆ set_accept_socket()
| void TcpServer::set_accept_socket |
( |
| ) |
|
|
protectedvirtual |
◆ set_socket_open_failure()
| void TcpServer::set_socket_open_failure |
( |
bool |
flag | ) |
|
|
inlineprotected |
◆ SetAcceptor()
| void TcpServer::SetAcceptor |
( |
| ) |
|
◆ SetDscpSocketOption()
◆ SetKeepAliveSocketOption()
| int TcpServer::SetKeepAliveSocketOption |
( |
int |
fd, |
|
|
const SandeshConfig & |
sandesh_config |
|
) |
| |
◆ SetListenSocketDscp()
| int TcpServer::SetListenSocketDscp |
( |
uint8_t |
value | ) |
|
◆ SetListenSocketMd5Option()
| int TcpServer::SetListenSocketMd5Option |
( |
uint32_t |
peer_ip, |
|
|
const std::string & |
md5_password |
|
) |
| |
◆ SetMd5SocketOption()
| int TcpServer::SetMd5SocketOption |
( |
NativeSocketType |
fd, |
|
|
uint32_t |
peer_ip, |
|
|
const std::string & |
md5_password |
|
) |
| |
◆ SetName()
| void TcpServer::SetName |
( |
Endpoint |
local_endpoint | ) |
|
|
private |
◆ SetSocketOptions()
| int TcpServer::SetSocketOptions |
( |
const SandeshConfig & |
sandesh_config | ) |
|
◆ Shutdown()
| void TcpServer::Shutdown |
( |
void |
| ) |
|
◆ socket_open_failure()
| bool TcpServer::socket_open_failure |
( |
| ) |
const |
|
inlineprotected |
◆ ToString()
| const std::string TcpServer::ToString |
( |
| ) |
const |
|
inline |
◆ UpdateSessionsDscp()
| void TcpServer::UpdateSessionsDscp |
( |
uint8_t |
dscp | ) |
|
◆ WaitForEmpty()
| void TcpServer::WaitForEmpty |
( |
| ) |
|
◆ BgpServerUnitTest
| friend class BgpServerUnitTest |
|
friend |
◆ intrusive_ptr_add_ref
| void intrusive_ptr_add_ref |
( |
TcpServer * |
server | ) |
|
|
friend |
◆ intrusive_ptr_release
| void intrusive_ptr_release |
( |
TcpServer * |
server | ) |
|
|
friend |
◆ SslSession
◆ TcpMessageWriter
◆ TcpSession
◆ acceptor_
| boost::scoped_ptr<boost::asio::ip::tcp::acceptor> TcpServer::acceptor_ |
|
private |
◆ cond_var_
| tbb::interface5::condition_variable TcpServer::cond_var_ |
|
private |
◆ evm_
◆ intf_id_
◆ mutex_
| tbb::mutex TcpServer::mutex_ |
|
mutableprivate |
◆ name_
| std::string TcpServer::name_ |
|
private |
◆ refcount_
| tbb::atomic<int> TcpServer::refcount_ |
|
private |
◆ session_map_
◆ session_ref_
◆ so_accept_
| std::unique_ptr<Socket> TcpServer::so_accept_ |
|
private |
◆ socket_open_failure_
| bool TcpServer::socket_open_failure_ |
|
private |
◆ stats_
The documentation for this class was generated from the following files: