|
SocketAddress * | m_addr |
|
SocketAddress * | m_from |
|
net_socket_t | m_socket |
|
int | m_errno |
|
char * | m_buffer |
|
char * | m_bufptr |
|
size_t | m_buflen |
|
size_t | m_rcvlen |
|
struct timeval | m_timeout |
|
Definition at line 315 of file socket.h.
◆ AwaitIncoming()
size_t UdpServerSocket::AwaitIncoming |
( |
timeval |
timeout | ) |
|
Wait for incoming data.
- Returns
- the size of datagram else 0 when timeout occurred
Definition at line 1118 of file socket.cpp.
◆ Bind()
bool UdpServerSocket::Bind |
( |
unsigned |
port | ) |
|
Bind the socket to the given port on any local addresses.
- Parameters
-
- Returns
- true on success, else false
Definition at line 989 of file socket.cpp.
◆ Create()
bool UdpServerSocket::Create |
( |
SOCKET_AF_t |
af | ) |
|
Initialize the socket for the given protocol.
- Returns
- true on success, else false
Definition at line 960 of file socket.cpp.
◆ GetErrNo()
int NSROOT::UdpServerSocket::GetErrNo |
( |
| ) |
const |
|
inline |
- Returns
- the last error occuring on call
Definition at line 325 of file socket.h.
◆ GetHandle()
net_socket_t NSROOT::UdpServerSocket::GetHandle |
( |
| ) |
const |
|
inline |
- Returns
- the socket handle
Definition at line 385 of file socket.h.
◆ GetRemoteAddrInfo()
std::string UdpServerSocket::GetRemoteAddrInfo |
( |
| ) |
const |
- Returns
- the address string of the remote host that provided the incoming datagram
Definition at line 1171 of file socket.cpp.
◆ IsValid()
bool UdpServerSocket::IsValid |
( |
| ) |
const |
- Returns
- true when socket is created, else false
Definition at line 984 of file socket.cpp.
◆ ReadData()
size_t UdpServerSocket::ReadData |
( |
void * |
buf, |
|
|
size_t |
n |
|
) |
| |
Read remaining data from the datagram buffer.
- Parameters
-
buf | the pointer to write received data |
n | the number of byte to read |
- Returns
- the number of received byte
Definition at line 1179 of file socket.cpp.
◆ SetMulticastMembership()
bool UdpServerSocket::SetMulticastMembership |
( |
const char * |
group, |
|
|
bool |
join |
|
) |
| |
Configure socket to join/leave the given multicast group.
- Parameters
-
group | address name of the group |
join | add/drop membership |
- Returns
- true on success, else false
Definition at line 1066 of file socket.cpp.
◆ SetMulticastTTL()
bool UdpServerSocket::SetMulticastTTL |
( |
int |
multicastTTL | ) |
|
Configure hop limit value to be used for multicast packets on the opened socket.
- Parameters
-
- Returns
- true on success, else false
Definition at line 1027 of file socket.cpp.
The documentation for this class was generated from the following files:
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/socket.h
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/socket.cpp