kodi
Classes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CUdpClient Class Reference
Inheritance diagram for CUdpClient:
Inheritance graph
[legend]
Collaboration diagram for CUdpClient:
Collaboration graph
[legend]

Classes

struct  UdpCommand
 

Protected Types

typedef std::vector< UdpCommand >::iterator COMMANDITERATOR
 

Protected Member Functions

bool Create ()
 
void Destroy ()
 
void OnStartup () override
 
void Process () override
 
bool Broadcast (int aPort, const std::string &aMessage)
 
bool Send (const std::string &aIpAddress, int aPort, const std::string &aMessage)
 
bool Send (struct sockaddr_in aAddress, const std::string &aMessage)
 
bool Send (struct sockaddr_in aAddress, unsigned char *pMessage, DWORD dwSize)
 
virtual void OnMessage (struct sockaddr_in &aRemoteAddress, const std::string &aMessage, unsigned char *pMessage, DWORD dwMessageLength)
 
bool DispatchNextCommand ()
 

Protected Attributes

SOCKET client_socket
 
std::vector< UdpCommandcommands
 
CCriticalSection critical_section
 

The documentation for this class was generated from the following files: