代码拉取完成,页面将自动刷新
同步操作将从 张远浩/call_demo_server 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// OS dependant type definition
#ifndef __OS_TYPE_H__
#define __OS_TYPE_H__
#ifdef _WIN32
#include <WinSock2.h>
#include <WinBase.h>
#include <Windows.h>
#include <direct.h>
#else
#ifdef __APPLE__
#include <sys/event.h>
#include <sys/time.h>
#include <sys/syscall.h> // syscall(SYS_gettid)
#else
#include <sys/epoll.h>
#endif
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h> // define int8_t ...
#include <signal.h>
#include <unistd.h>
#define closesocket close
#define ioctlsocket ioctl
#endif
#include <stdexcept>
#include <unordered_map>
#ifdef _WIN32
typedef char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef int socklen_t;
#else
typedef int SOCKET;
typedef int BOOL;
#ifndef __APPLE__
const int TRUE = 1;
const int FALSE = 0;
#endif
const int SOCKET_ERROR = -1;
const int INVALID_SOCKET = -1;
#endif
typedef unsigned char uchar_t;
typedef int net_handle_t;
typedef int conn_handle_t;
enum {
NETLIB_OK = 0,
NETLIB_ERROR = -1
};
#define NETLIB_INVALID_HANDLE -1
enum
{
NETLIB_MSG_CONNECT = 1,
NETLIB_MSG_CONFIRM,
NETLIB_MSG_READ,
NETLIB_MSG_WRITE,
NETLIB_MSG_CLOSE,
NETLIB_MSG_TIMER,
NETLIB_MSG_LOOP
};
const uint32_t INVALID_UINT32 = (uint32_t) -1;
const uint32_t INVALID_VALUE = 0;
typedef void (*callback_t)(void* callback_data, uint8_t msg, uint32_t handle, void* pParam);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。