8 #ifndef __ETHUPDATER_DSOCKET_H__
9 #define __ETHUPDATER_DSOCKET_H__
14 #include <ace/SOCK_Dgram_Bcast.h>
23 bool Create(ACE_UINT16 port,std::string& address);
24 bool Create(ACE_UINT16 port,ACE_UINT32 address);
26 bool Create(eOipv4addr_t ipv4, eOipv4port_t port);
28 void SendTo(eOipv4addr_t ipv4, eOipv4port_t port,
void*
data,
size_t len);
29 ssize_t
ReceiveFrom(eOipv4addr_t &ipv4, eOipv4port_t &port,
void*
data,
size_t len,
int wait_msec);
31 void SendTo(
void*
data,
size_t len,ACE_UINT16 port,std::string& address);
32 void SendTo(
void*
data,
size_t len,ACE_UINT16 port,ACE_UINT32 address);
36 ssize_t
ReceiveFrom(
void*
data,
size_t len,std::string &address,ACE_UINT16 &port,
int wait_msec);
37 ssize_t
ReceiveFrom(
void*
data,
size_t len,ACE_UINT32 &address,ACE_UINT16 &port,
int wait_msec);
void SendTo(eOipv4addr_t ipv4, eOipv4port_t port, void *data, size_t len)
ACE_SOCK_Dgram_Bcast * mSocket
bool Create(ACE_UINT16 port, std::string &address)
void SendBroad(eOipv4port_t port, void *data, size_t len)
ssize_t ReceiveFrom(eOipv4addr_t &ipv4, eOipv4port_t &port, void *data, size_t len, int wait_msec)