iCub-main
Public Member Functions | Protected Attributes | List of all members
DSocket Class Reference

#include <DSocket.h>

Public Member Functions

 DSocket ()
 
 ~DSocket ()
 
bool Create (ACE_UINT16 port, std::string &address)
 
bool Create (ACE_UINT16 port, ACE_UINT32 address)
 
bool Create (eOipv4addr_t ipv4, eOipv4port_t port)
 
void SendBroad (eOipv4port_t port, void *data, size_t len)
 
void SendTo (eOipv4addr_t ipv4, 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)
 
void SendTo (void *data, size_t len, ACE_UINT16 port, std::string &address)
 
void SendTo (void *data, size_t len, ACE_UINT16 port, ACE_UINT32 address)
 
void SendBroad (void *data, size_t len, ACE_UINT16 port)
 
ssize_t ReceiveFrom (void *data, size_t len, std::string &address, ACE_UINT16 &port, int wait_msec)
 
ssize_t ReceiveFrom (void *data, size_t len, ACE_UINT32 &address, ACE_UINT16 &port, int wait_msec)
 
void Close ()
 

Protected Attributes

ACE_SOCK_Dgram_Bcast * mSocket
 

Detailed Description

Definition at line 17 of file DSocket.h.

Constructor & Destructor Documentation

◆ DSocket()

DSocket::DSocket ( )

Definition at line 14 of file DSocket.cpp.

◆ ~DSocket()

DSocket::~DSocket ( )

Definition at line 19 of file DSocket.cpp.

Member Function Documentation

◆ Close()

void DSocket::Close ( )

Definition at line 137 of file DSocket.cpp.

◆ Create() [1/3]

bool DSocket::Create ( ACE_UINT16  port,
ACE_UINT32  address 
)

Definition at line 32 of file DSocket.cpp.

◆ Create() [2/3]

bool DSocket::Create ( ACE_UINT16  port,
std::string &  address 
)

Definition at line 25 of file DSocket.cpp.

◆ Create() [3/3]

bool DSocket::Create ( eOipv4addr_t  ipv4,
eOipv4port_t  port 
)

Definition at line 39 of file DSocket.cpp.

◆ ReceiveFrom() [1/3]

ssize_t DSocket::ReceiveFrom ( eOipv4addr_t &  ipv4,
eOipv4port_t &  port,
void *  data,
size_t  len,
int  wait_msec 
)

Definition at line 116 of file DSocket.cpp.

◆ ReceiveFrom() [2/3]

ssize_t DSocket::ReceiveFrom ( void *  data,
size_t  len,
ACE_UINT32 &  address,
ACE_UINT16 &  port,
int  wait_msec 
)

Definition at line 95 of file DSocket.cpp.

◆ ReceiveFrom() [3/3]

ssize_t DSocket::ReceiveFrom ( void *  data,
size_t  len,
std::string &  address,
ACE_UINT16 &  port,
int  wait_msec 
)

Definition at line 75 of file DSocket.cpp.

◆ SendBroad() [1/2]

void DSocket::SendBroad ( eOipv4port_t  port,
void *  data,
size_t  len 
)

Definition at line 70 of file DSocket.cpp.

◆ SendBroad() [2/2]

void DSocket::SendBroad ( void *  data,
size_t  len,
ACE_UINT16  port 
)

Definition at line 64 of file DSocket.cpp.

◆ SendTo() [1/3]

void DSocket::SendTo ( eOipv4addr_t  ipv4,
eOipv4port_t  port,
void *  data,
size_t  len 
)

Definition at line 58 of file DSocket.cpp.

◆ SendTo() [2/3]

void DSocket::SendTo ( void *  data,
size_t  len,
ACE_UINT16  port,
ACE_UINT32  address 
)

Definition at line 53 of file DSocket.cpp.

◆ SendTo() [3/3]

void DSocket::SendTo ( void *  data,
size_t  len,
ACE_UINT16  port,
std::string &  address 
)

Definition at line 48 of file DSocket.cpp.

Member Data Documentation

◆ mSocket

ACE_SOCK_Dgram_Bcast* DSocket::mSocket
protected

Definition at line 42 of file DSocket.h.


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