添加version.txt,修改README.txt
This commit is contained in:
parent
1b85fae8c9
commit
ed6e77a7b4
16
README.txt
16
README.txt
@ -1,6 +1,8 @@
|
|||||||
提供ssocket.h库文件以供在windows和linux帮助tcp-ipv4的实现
|
提供ssocket.h库文件以供在windows和linux帮助tcp-ipv4的实现
|
||||||
未来将提供udp-ipv4及相应ipv6实现
|
未来将提供udp-ipv4及相应ipv6实现
|
||||||
|
|
||||||
|
版本号:1.0.2
|
||||||
|
|
||||||
测试用例:
|
测试用例:
|
||||||
在test文件夹下有client和server文件夹在其内部的build文件夹下有用于windows的vs工程文件
|
在test文件夹下有client和server文件夹在其内部的build文件夹下有用于windows的vs工程文件
|
||||||
所有test用例使用cmake构建
|
所有test用例使用cmake构建
|
||||||
@ -53,6 +55,11 @@
|
|||||||
make_sock(psock);
|
make_sock(psock);
|
||||||
...
|
...
|
||||||
free(psock);
|
free(psock);
|
||||||
|
同理:
|
||||||
|
int make_sock_tcp4(SOCKET* sock);
|
||||||
|
int make_sock_tcp6(SOCKET* sock);
|
||||||
|
int make_sock_udp4(SOCKET* sock);
|
||||||
|
int make_sock_udp6(SOCKET* sock);
|
||||||
|
|
||||||
int make_server_sock(SOCKET* sock, const char* server_ip, unsigned short port)
|
int make_server_sock(SOCKET* sock, const char* server_ip, unsigned short port)
|
||||||
作用:
|
作用:
|
||||||
@ -115,3 +122,12 @@
|
|||||||
int* data = malloc(sizeof(int));
|
int* data = malloc(sizeof(int));
|
||||||
sock_thread(thread_func, data);
|
sock_thread(thread_func, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
内置函数文档
|
||||||
|
static inline int _socket(SOCKET* sock, const char* ip, const char* port);
|
||||||
|
static inline int _connect(SOCKET sock, const char* ip, const char* port);
|
||||||
|
static inline int _bind(SOCKET sock, const char* ip, const char* port);
|
||||||
|
static inline int _bindlisten(SOCKET sock, const char* ip, const char* port);
|
||||||
|
|
||||||
|
static inline int _sock(SOCKET* sock, int af, int type);
|
Loading…
x
Reference in New Issue
Block a user