2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

socket-util: error number to string for sockets.

For winsock2 functions, error number has to be converted to string
using FormatMessage().

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-05 19:50:10 -08:00
parent 55489d31a6
commit b26f46a401
3 changed files with 35 additions and 0 deletions

View File

@@ -86,5 +86,6 @@ uint16_t ss_get_port(const struct sockaddr_storage *);
char *ss_format_address(const struct sockaddr_storage *,
char *buf, size_t bufsize);
size_t ss_length(const struct sockaddr_storage *);
const char *sock_strerror(int error);
#endif /* socket-util.h */