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);
216 inline bool isPendingConnection(
timeout_t timeout = TIMEOUT_INF)
217 {
return Socket::isPending(Socket::pendingInput, timeout);}