代码拉取完成,页面将自动刷新
#include "net_posix.h"
#include "malloc.h"
#include "string.h"
static __thread net_impl posix_net_impl = {
.type = SOCK_TYPE_POSIX,
.name = "posix",
.priority = 0,
.listen = posix_listen,
.accept = posix_accept,
.connect = posix_connect,
.getaddr = posix_getaddr,
.readv = posix_readv,
.writev = posix_writev,
.set_recvbuf = posix_set_recvbuf,
.set_sendbuf = posix_set_sendbuf,
.close = posix_close,
.group_create = posix_group_create,
.group_add_sock = posix_group_add_sock,
.group_remove_sock = posix_group_remove_sock,
.group_poll = posix_group_poll,
.group_close = posix_group_close
};
extern const net_impl *net_get_impl(int type) {
switch (type) {
case SOCK_TYPE_POSIX:
return &posix_net_impl;
default:
return NULL;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。