Add recvfromto6
This commit is contained in:
parent
c3eb1be0b4
commit
13d7080ac1
3 changed files with 78 additions and 24 deletions
5
util.h
5
util.h
|
|
@ -10,6 +10,9 @@ ssize_t sendtofrom(int s, void const *buf, size_t len, int flags,
|
|||
struct sockaddr const *to, socklen_t tolen, struct in_addr const *from);
|
||||
|
||||
ssize_t recvfromto(int s, void *buf, size_t len, int flags,
|
||||
struct sockaddr *from, socklen_t *fromlen, struct in_addr *toaddr);
|
||||
struct sockaddr *from, socklen_t *fromlen, struct in_addr *toaddr, int *ifidx);
|
||||
|
||||
ssize_t recvfromto6(int s, void *buf, size_t len, int flags,
|
||||
struct sockaddr *from, socklen_t *fromlen, struct in6_addr *toaddr, int *ifidx);
|
||||
|
||||
#endif /* __UTIL_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue