44 #ifndef COMMONCPP_DCCP_H_
45 #define COMMONCPP_DCCP_H_
49 #ifndef COMMONCPP_CONFIG_H_
50 #include <commoncpp/config.h>
53 #ifndef COMMONCPP_STRING_H_
57 #ifndef COMMONCPP_ADDRESS_H_
61 #ifndef COMMONCPP_SOCKET_H_
96 struct sockaddr_in ipv4;
98 struct sockaddr_in6 ipv6;
116 virtual bool onAccept(
const IPV4Host &ia, tpport_t port);
118 virtual bool onAccept(
const IPV6Host &ia, tpport_t port);
121 virtual IPV4Host getIPV4Sender(tpport_t *port = NULL)
const;
124 virtual IPV6Host getIPV6Sender(tpport_t *port = NULL)
const;
152 DCCPSocket(
const char *name, Family family = IPV4,
unsigned backlog = 5);
172 void disconnect(
void);
177 bool setCCID(uint8_t ccid);
209 void connect(
const char *name);
217 {
return Socket::isPending(Socket::pendingInput, timeout);}
Common C++ generic string class.
Network addresses and sockets related classes.
DCCP sockets are used for stream based connected sessions between two sockets.
The network name and address objects are all derived from a common IPV4Address base class...
unsigned long timeout_t
Typedef for millisecond timer values.
This object is used to hold the actual and valid internet address of a specific host machine that wil...
The network name and address objects are all derived from a common IPV6Address base class...
bool isPendingConnection(timeout_t timeout=ucommon::Timer::inf)
Used to wait for pending connection requests.
This object is used to hold the actual and valid internet address of a specific host machine that wil...