diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-10-27 15:09:16 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-10-27 15:09:16 +0000 |
commit | 4cb89f2eee3bb358f0491932ab0498b5319f4229 (patch) | |
tree | fc2691469564e7d7e552247f2b2c6e04dd7efb8a /util/net_help.h | |
parent | 7973006f41cdaf144441d1a39f9f075053435e2f (diff) |
Diffstat (limited to 'util/net_help.h')
-rw-r--r-- | util/net_help.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/net_help.h b/util/net_help.h index 29943ada090fe..45b607a430d5a 100644 --- a/util/net_help.h +++ b/util/net_help.h @@ -496,4 +496,10 @@ void listen_sslctx_delete_ticket_keys(void); */ int netblockdnametoaddr(uint8_t* dname, size_t dnamelen, struct sockaddr_storage* addr, socklen_t* addrlen, int* net, int* af); + +/** Return strerror or wsastrerror for socket error printout */ +char* sock_strerror(int errn); +/** close the socket with close, or wsa closesocket */ +void sock_close(int socket); + #endif /* NET_HELP_H */ |