Added some comments

FossilOrigin-Name: 80bd78289b5a1670541755108f62e253c9c1e32274c7ca284b5421d72c1b5ef1
This commit is contained in:
7u83@mail.ru 2016-02-14 07:59:19 +00:00
parent 7aaae9f98a
commit ed4182270b
1 changed files with 11 additions and 2 deletions

View File

@ -16,6 +16,12 @@
*/
/**
*@file
*@brief Implementation of sock_cmpaddrs
*/
#include <stdint.h>
#include <string.h>
#include <netinet/in.h>
@ -25,8 +31,12 @@
/**
* compare two sockaddrs
*
* @param addr1 first address to compare
* @param addr2 second address to compare
* @cmpport if not zero, also compare the port
* @return 0 if both addriesses are equal
* Currently there are there are only AF_INET and AF_INET6
* suppoorted
*/
int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int cmpport)
@ -73,4 +83,3 @@ int sock_cmpaddr(const struct sockaddr *addr1, const struct sockaddr *addr2,int
}