Mercurial > dropbear
diff netio.h @ 1464:ad637c9e0f6f
Server chosen tcpfwd ports (#43)
Server chosen tcpfwd ports
author | houseofkodai <karthik@houseofkodai.in> |
---|---|
date | Thu, 25 Jan 2018 19:51:41 +0530 |
parents | 06d52bcb8094 |
children | f7a53832501d |
line wrap: on
line diff
--- a/netio.h Thu Jan 25 21:58:00 2018 +0800 +++ b/netio.h Thu Jan 25 19:51:41 2018 +0530 @@ -14,6 +14,7 @@ void set_sock_nodelay(int sock); void set_sock_priority(int sock, enum dropbear_prio prio); +int get_sock_port(int sock); void get_socket_address(int fd, char **local_host, char **local_port, char **remote_host, char **remote_port, int host_lookup); void getaddrstring(struct sockaddr_storage* addr,