mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-19 21:03:57 -07:00
getsockname() implemented
This commit is contained in:
parent
b8cba90d85
commit
a730c86907
4 changed files with 90 additions and 7 deletions
|
@ -56,6 +56,7 @@
|
|||
#define RPC_LISTEN 10
|
||||
#define RPC_SOCKET 11
|
||||
#define RPC_SHUTDOWN 12
|
||||
#define RPC_GETSOCKNAME 13
|
||||
|
||||
/* Administration RPC codes */
|
||||
#define RPC_MAP 20 /* Give the service the value we "see" for the new buffer fd */
|
||||
|
@ -175,6 +176,14 @@ struct shutdown_st
|
|||
int how;
|
||||
};
|
||||
|
||||
struct getsockname_st
|
||||
{
|
||||
int sockfd;
|
||||
struct sockaddr addr;
|
||||
socklen_t addrlen;
|
||||
};
|
||||
|
||||
|
||||
#define CONNECT_SOCKARG struct sockaddr *
|
||||
#define SELECT_SIG int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout
|
||||
#define IOCTL_SIG int __fd, unsigned long int __request, ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue