~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comm: Provide udp_socks_deregister
[secnet]
/
comm-common.h
diff --git
a/comm-common.h
b/comm-common.h
index
ba49254
..
ed6a86b
100644
(file)
--- a/
comm-common.h
+++ b/
comm-common.h
@@
-70,6
+70,9
@@
struct udpsock {
struct udpsocks {
int n_socks;
struct udpsock socks[UDP_MAX_SOCKETS];
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 poll_interest *interest;
};
struct udpcommon {
};
struct udpcommon {
@@
-80,12
+83,12
@@
struct udpcommon {
union iaddr proxy;
};
union iaddr proxy;
};
-
int udp_socks_beforepoll(struct udpsocks *
s,
- struct pollfd *fds, int *nfds_io,
- int *timeout_io);
+
bool_t udp_make_socket(struct udpcommon *uc, struct udpsock *u
s,
+ int failmsgclass);
+ /* Fills in us->fd. Logs any errors with lg_[v]perror. */
-void udp_socks_
afterpoll(struct udpcommon *u, struct udpsocks *s,
-
struct pollfd *fds, int nfd
s);
+void udp_socks_
register(struct udpcommon *uc, struct udpsocks *socks);
+
void udp_socks_deregister(struct udpcommon *uc, struct udpsocks *sock
s);
#define UDP_APPLY_STANDARD(st,uc,desc) \
(uc)->use_proxy=False; \
#define UDP_APPLY_STANDARD(st,uc,desc) \
(uc)->use_proxy=False; \