14 #include "threads/CriticalSection.h"    15 #include "threads/Thread.h"    20 #include <netinet/in.h>    21 #include <sys/socket.h>    23 #include "PlatformDefs.h"    36   void OnStartup() 
override;
    37   void Process() 
override;
    39   bool Broadcast(
int aPort, 
const std::string& aMessage);
    40   bool Send(
const std::string& aIpAddress, 
int aPort, 
const std::string& aMessage);
    41   bool Send(
struct sockaddr_in aAddress, 
const std::string& aMessage);
    42   bool Send(
struct sockaddr_in aAddress, 
unsigned char* pMessage, DWORD dwSize);
    44   virtual void OnMessage(
struct sockaddr_in& aRemoteAddress,
    45                          const std::string& aMessage,
    46                          unsigned char* pMessage,
    47                          DWORD dwMessageLength)
    55     struct sockaddr_in address;
    57     unsigned char* binary;
    61   bool DispatchNextCommand();
    65   std::vector<UdpCommand> commands;
    66   typedef std::vector<UdpCommand> ::iterator COMMANDITERATOR;
    68   CCriticalSection critical_section;
 
Definition: UdpClient.h:25
Definition: UdpClient.h:53