Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/docs/manual/socketpair_t.md
2025-09-30 11:56:06 +08:00

767 B

socketpair_t

概述

socketpair

函数

函数名称 说明
tk_socketpair 生成两个socket句柄。两者可以模拟客户端和服务器通信。

tk_socketpair 函数


  • 函数功能:

生成两个socket句柄。两者可以模拟客户端和服务器通信。

  • 函数原型:
int tk_socketpair (int* socks);
  • 参数说明:
参数 类型 说明
返回值 int 小于0表示失败。
socks int* 由于返回生成的socket句柄。