#include <udp_server.h>
 | 
| EventManager *  | event_manager () | 
|   | 
| virtual bool  | DisableSandeshLogMessages () | 
|   | 
| virtual std::string  | ToString () | 
|   | 
| virtual void  | HandleReceive (const boost::asio::const_buffer &recv_buffer, boost::asio::ip::udp::endpoint remote_endpoint, std::size_t bytes_transferred, const boost::system::error_code &error) | 
|   | 
| virtual void  | OnRead (const boost::asio::const_buffer &recv_buffer, const boost::asio::ip::udp::endpoint &remote_endpoint) | 
|   | 
| virtual int  | reader_task_id () const | 
|   | 
| virtual int  | reader_task_instance (const boost::asio::ip::udp::endpoint &remote_endpoint) const | 
|   | 
| virtual void  | HandleSend (boost::asio::const_buffer send_buffer, boost::asio::ip::udp::endpoint remote_endpoint, std::size_t bytes_transferred, const boost::system::error_code &error) | 
|   | 
 | 
| void  | SetName (boost::asio::ip::udp::endpoint ep) | 
|   | 
| void  | HandleReceiveInternal (boost::asio::const_buffer recv_buffer, std::size_t bytes_transferred, const boost::system::error_code &error) | 
|   | 
| void  | HandleSendInternal (boost::asio::const_buffer send_buffer, boost::asio::ip::udp::endpoint remote_endpoint, std::size_t bytes_transferred, const boost::system::error_code &error) | 
|   | 
|   | DISALLOW_COPY_AND_ASSIGN (UdpServer) | 
|   | 
Definition at line 18 of file udp_server.h.
 
◆ Endpoint
◆ Socket
◆ ServerState
| Enumerator | 
|---|
| OK  |  | 
| Uninitialized  |  | 
| SocketOpenFailed  |  | 
| SocketBindFailed  |  | 
Definition at line 23 of file udp_server.h.
 
 
◆ UdpServer() [1/2]
◆ UdpServer() [2/2]
  
  
      
        
          | UdpServer::UdpServer  | 
          ( | 
          boost::asio::io_context *  | 
          io_service,  | 
         
        
           | 
           | 
          int  | 
          buffer_size = kDefaultBufferSize  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
explicit   | 
  
 
 
◆ ~UdpServer()
  
  
      
        
          | UdpServer::~UdpServer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ AllocateBuffer() [1/2]
      
        
          | mutable_buffer UdpServer::AllocateBuffer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ AllocateBuffer() [2/2]
      
        
          | mutable_buffer UdpServer::AllocateBuffer  | 
          ( | 
          std::size_t  | 
          s | ) | 
           | 
        
      
 
 
◆ DeallocateBuffer()
      
        
          | void UdpServer::DeallocateBuffer  | 
          ( | 
          const boost::asio::const_buffer &  | 
          buffer | ) | 
           | 
        
      
 
 
◆ DisableSandeshLogMessages()
  
  
      
        
          | virtual bool UdpServer::DisableSandeshLogMessages  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ DISALLOW_COPY_AND_ASSIGN()
  
  
      
        
          | UdpServer::DISALLOW_COPY_AND_ASSIGN  | 
          ( | 
          UdpServer  | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ event_manager()
◆ GetLocalEndpoint()
      
        
          | udp::endpoint UdpServer::GetLocalEndpoint  | 
          ( | 
          boost::system::error_code *  | 
          error | ) | 
           const | 
        
      
 
 
◆ GetLocalEndpointAddress()
      
        
          | std::string UdpServer::GetLocalEndpointAddress  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetLocalEndpointPort()
      
        
          | int UdpServer::GetLocalEndpointPort  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetRxSocketStats()
      
        
          | void UdpServer::GetRxSocketStats  | 
          ( | 
          SocketIOStats *  | 
          socket_stats | ) | 
           const | 
        
      
 
 
◆ GetServerState()
◆ GetSocketStats()
◆ GetTxSocketStats()
      
        
          | void UdpServer::GetTxSocketStats  | 
          ( | 
          SocketIOStats *  | 
          socket_stats | ) | 
           const | 
        
      
 
 
◆ HandleReceive()
  
  
      
        
          | void UdpServer::HandleReceive  | 
          ( | 
          const boost::asio::const_buffer &  | 
          recv_buffer,  | 
         
        
           | 
           | 
          boost::asio::ip::udp::endpoint  | 
          remote_endpoint,  | 
         
        
           | 
           | 
          std::size_t  | 
          bytes_transferred,  | 
         
        
           | 
           | 
          const boost::system::error_code &  | 
          error  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ HandleReceiveInternal()
  
  
      
        
          | void UdpServer::HandleReceiveInternal  | 
          ( | 
          boost::asio::const_buffer  | 
          recv_buffer,  | 
         
        
           | 
           | 
          std::size_t  | 
          bytes_transferred,  | 
         
        
           | 
           | 
          const boost::system::error_code &  | 
          error  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ HandleSend()
  
  
      
        
          | void UdpServer::HandleSend  | 
          ( | 
          boost::asio::const_buffer  | 
          send_buffer,  | 
         
        
           | 
           | 
          boost::asio::ip::udp::endpoint  | 
          remote_endpoint,  | 
         
        
           | 
           | 
          std::size_t  | 
          bytes_transferred,  | 
         
        
           | 
           | 
          const boost::system::error_code &  | 
          error  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ HandleSendInternal()
  
  
      
        
          | void UdpServer::HandleSendInternal  | 
          ( | 
          boost::asio::const_buffer  | 
          send_buffer,  | 
         
        
           | 
           | 
          boost::asio::ip::udp::endpoint  | 
          remote_endpoint,  | 
         
        
           | 
           | 
          std::size_t  | 
          bytes_transferred,  | 
         
        
           | 
           | 
          const boost::system::error_code &  | 
          error  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ Initialize() [1/3]
  
  
      
        
          | virtual bool UdpServer::Initialize  | 
          ( | 
          boost::asio::ip::udp::endpoint  | 
          local_endpoint | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Initialize() [2/3]
  
  
      
        
          | bool UdpServer::Initialize  | 
          ( | 
          const std::string &  | 
          ipaddress,  | 
         
        
           | 
           | 
          unsigned short  | 
          port  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Initialize() [3/3]
  
  
      
        
          | bool UdpServer::Initialize  | 
          ( | 
          unsigned short  | 
          port | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ OnRead()
  
  
      
        
          | void UdpServer::OnRead  | 
          ( | 
          const boost::asio::const_buffer &  | 
          recv_buffer,  | 
         
        
           | 
           | 
          const boost::asio::ip::udp::endpoint &  | 
          remote_endpoint  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ reader_task_id()
  
  
      
        
          | virtual int UdpServer::reader_task_id  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ reader_task_instance()
  
  
      
        
          | int UdpServer::reader_task_instance  | 
          ( | 
          const boost::asio::ip::udp::endpoint &  | 
          remote_endpoint | ) | 
           const | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ SetName()
  
  
      
        
          | void UdpServer::SetName  | 
          ( | 
          boost::asio::ip::udp::endpoint  | 
          ep | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ Shutdown()
  
  
      
        
          | void UdpServer::Shutdown  | 
          ( | 
          void  | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ StartReceive()
      
        
          | void UdpServer::StartReceive  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ StartSend()
      
        
          | void UdpServer::StartSend  | 
          ( | 
          boost::asio::ip::udp::endpoint  | 
          ep,  | 
        
        
           | 
           | 
          std::size_t  | 
          bytes_to_send,  | 
        
        
           | 
           | 
          boost::asio::const_buffer  | 
          buffer  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ ToString()
  
  
      
        
          | virtual std::string UdpServer::ToString  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ intrusive_ptr_add_ref
  
  
      
        
          | void intrusive_ptr_add_ref  | 
          ( | 
          UdpServer *  | 
          server | ) | 
           | 
         
       
   | 
  
friend   | 
  
 
 
◆ intrusive_ptr_release
  
  
      
        
          | void intrusive_ptr_release  | 
          ( | 
          UdpServer *  | 
          server | ) | 
           | 
         
       
   | 
  
friend   | 
  
 
 
◆ buffer_size_
  
  
      
        
          | int UdpServer::buffer_size_ | 
         
       
   | 
  
private   | 
  
 
 
◆ evm_
◆ kDefaultBufferSize
  
  
      
        
          | const int UdpServer::kDefaultBufferSize = 4 * 1024 | 
         
       
   | 
  
static   | 
  
 
 
◆ name_
  
  
      
        
          | std::string UdpServer::name_ | 
         
       
   | 
  
private   | 
  
 
 
◆ pbuf_
  
  
      
        
          | std::vector<uint8_t *> UdpServer::pbuf_ | 
         
       
   | 
  
private   | 
  
 
 
◆ pbuf_guard_
  
  
      
        
          | tbb::mutex UdpServer::pbuf_guard_ | 
         
       
   | 
  
private   | 
  
 
 
◆ reader_task_id_
  
  
      
        
          | int UdpServer::reader_task_id_ = -1 | 
         
       
   | 
  
staticprivate   | 
  
 
 
◆ refcount_
  
  
      
        
          | tbb::atomic<int> UdpServer::refcount_ | 
         
       
   | 
  
private   | 
  
 
 
◆ remote_endpoint_
  
  
      
        
          | boost::asio::ip::udp::endpoint UdpServer::remote_endpoint_ | 
         
       
   | 
  
private   | 
  
 
 
◆ socket_
  
  
      
        
          | boost::asio::ip::udp::socket UdpServer::socket_ | 
         
       
   | 
  
private   | 
  
 
 
◆ state_
◆ state_guard_
  
  
      
        
          | tbb::mutex UdpServer::state_guard_ | 
         
       
   | 
  
private   | 
  
 
 
◆ stats_
The documentation for this class was generated from the following files: