FossilOrigin-Name: 4b55556b0a11bc595731692c46836925055b543168839619b28021406b99f3ae
This commit is contained in:
7u83@mail.ru 2016-03-31 17:21:50 +00:00
parent 4a3aa336ce
commit 03bd3d00d1
1 changed files with 6 additions and 5 deletions

View File

@ -7,11 +7,12 @@
#include <errno.h>
#include "sock.h"
/*
* convert a string to sockaddr struct.
* the string can contain a ipv4 or ipv6 address including a port number.
* returns 1 on success
* otherwise no success
/**
* Convert a string to an sockaddr struct.
* The string can contain an ipv4 or ipv6 address, including a port number.
* @param s address string
* @param saout output buffer
* @return 1 on success, otherwise no success
*/
int sock_strtoaddr(const char * s,struct sockaddr * saout){