X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/763e458ff3a1cb4f9d11226db91f17069f7b8f7a..f7af31926b95660b98177fb4fd48c72edf32944d:/comm-common.h diff --git a/comm-common.h b/comm-common.h index ba49254..44bb6c3 100644 --- a/comm-common.h +++ b/comm-common.h @@ -70,6 +70,8 @@ struct udpsock { struct udpsocks { int n_socks; struct udpsock socks[UDP_MAX_SOCKETS]; + /* private for udp_socks_* */ + struct udpcommon *uc; /* link to parent, for cfg, notify list, etc. */ }; struct udpcommon { @@ -80,12 +82,8 @@ struct udpcommon { union iaddr proxy; }; -int udp_socks_beforepoll(struct udpsocks *s, - struct pollfd *fds, int *nfds_io, - int *timeout_io); - -void udp_socks_afterpoll(struct udpcommon *u, struct udpsocks *s, - struct pollfd *fds, int nfds); +void udp_make_socket(struct udpcommon *uc, struct udpsock *us); +void udp_socks_register(struct udpcommon *uc, struct udpsocks *socks); #define UDP_APPLY_STANDARD(st,uc,desc) \ (uc)->use_proxy=False; \