X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_net%2Fos_net.h;fp=src%2Fos_net%2Fos_net.h;h=f5a185545d59087a43811d816215554940be5133;hp=33d27fb7759c2642e4d012bc7f55107d6d03a124;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a diff --git a/src/os_net/os_net.h b/src/os_net/os_net.h index 33d27fb..f5a1855 100755 --- a/src/os_net/os_net.h +++ b/src/os_net/os_net.h @@ -80,6 +80,13 @@ int OS_SendUDPbySize(int socket, int size, char *msg); */ char *OS_GetHost(char *host, int attempts); +/** + * Close a network socket. + * @param socket the socket to close + * @return 0 on success, else -1 or SOCKET_ERROR + */ +int OS_CloseSocket(int socket); + #endif /* EOF */