提交 d1a1cbfd 编写于 作者: B Bernard Xiong

[DFS] add sockaddr_storage structure in sys/socket.h

上级 730592df
......@@ -31,6 +31,14 @@ extern "C" {
#include <lwip/sockets.h>
typedef uint16_t sa_family_t;
struct sockaddr_storage
{
sa_family_t ss_family; /* Address family */
char ss_data[14]; /* 14-bytes of address data */
};
int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
int bind(int s, const struct sockaddr *name, socklen_t namelen);
int shutdown(int s, int how);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册