43 #ifndef COMMONCPP_DCCP_H_
44 #define COMMONCPP_DCCP_H_
48 #ifndef COMMONCPP_CONFIG_H_
49 #include <commoncpp/config.h>
52 #ifndef COMMONCPP_STRING_H_
56 #ifndef COMMONCPP_ADDRESS_H_
60 #ifndef COMMONCPP_SOCKET_H_
95 struct sockaddr_in ipv4;
97 struct sockaddr_in6 ipv6;
115 virtual bool onAccept(
const IPV4Host &ia, tpport_t port);
117 virtual bool onAccept(
const IPV6Host &ia, tpport_t port);
120 virtual IPV4Host getIPV4Sender(tpport_t *port = NULL)
const;
123 virtual IPV6Host getIPV6Sender(tpport_t *port = NULL)
const;
151 DCCPSocket(
const char *name, Family family = IPV4,
unsigned backlog = 5);
171 void disconnect(
void);
176 bool setCCID(uint8_t ccid);
208 void connect(
const char *name);
216 {
return Socket::isPending(Socket::pendingInput, timeout);}
Common C++ generic string class.
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...
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...
unsigned long timeout_t
Typedef for millisecond timer values.
bool isPendingConnection(timeout_t timeout=ucommon::Timer::inf)
Used to wait for pending connection requests.
Network addresses and sockets related classes.
This object is used to hold the actual and valid internet address of a specific host machine that wil...