acl
3.5.3.0
|
#include "../stdlib/acl_define.h"
函数 | |
ACL_API int | acl_getpeername (ACL_SOCKET fd, char *buf, size_t bsize) |
ACL_API int | acl_getsockname (ACL_SOCKET fd, char *buf, size_t bsize) |
ACL_API int | acl_getsocktype (ACL_SOCKET fd) |
ACL_API int | acl_check_socket (ACL_SOCKET fd) |
ACL_API int | acl_is_listening_socket (ACL_SOCKET fd) |
ACL_API int acl_check_socket | ( | ACL_SOCKET | fd | ) |
检查套接字:是监听套接字还是网络套接字
fd | {ACL_SOCKET} 套接字句柄 |
ACL_API int acl_getpeername | ( | ACL_SOCKET | fd, |
char * | buf, | ||
size_t | bsize | ||
) |
取得套接字连接对方的网络地址, 地址格式为: IP:PORT
fd | {ACL_SOCKET} 网络套接字 |
buf | {char*} 存储地址的缓冲区,不能为空 |
bsize | {size_t} buf 空间大小 |
ACL_API int acl_getsockname | ( | ACL_SOCKET | fd, |
char * | buf, | ||
size_t | bsize | ||
) |
取得套接字连接本地的网络地址, 地址格式为: IP:PORT
fd | {ACL_SOCKET} 网络套接字 |
buf | {char*} 存储地址的缓冲区,不能为空 |
bsize | {size_t} buf 空间大小 |
ACL_API int acl_getsocktype | ( | ACL_SOCKET | fd | ) |
取得套接字的类型:是网络套接字还是域套接字
fd | {ACL_SOCKET} 网络套接字 |
ACL_API int acl_is_listening_socket | ( | ACL_SOCKET | fd | ) |
判断套接字是否为监听套接字
fd | {ACL_SOCKET} 套接字句柄 |