libuv(不断更新)

/*
 * Initialize the uv_async_t handle. A NULL callback is allowed.
 *
 * Note that uv_async_init(), unlike other libuv functions, immediately
 * starts the handle. To stop the handle again, close it with uv_close().
 */
UV_EXTERN int uv_async_init(uv_loop_t*,
                            uv_async_t* async,
                            uv_async_cb async_cb);

发送异步命令时初始化用的,具体也不太了解

int uv_tcp_getpeername(const uv_tcp_t* handle, struct sockaddr* name, int* namelen):获取与handle连接的远端的地址

UV_EXTERN int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);将二进制ip地址转换成字符串

typedef HANDLE uv_thread_t;
typedef void *HANDLE;

看来这个uv_thread_t只是windows的一个句柄,句柄是一种资源的意思,大概可以理解成指针,这些库的封装最终还是离不开底层的操作系统。
原文地址:https://www.cnblogs.com/zzyoucan/p/4712825.html