SOCKET的数据类型是不是就是unsigned long

fatrain 2004-08-23 09:27:23
初学SOCKET编程,对SOCKET的数据类型搞不清楚,请各位帮忙
...全文
123 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yuantao 2004-08-24
  • 打赏
  • 举报
回复
SOCKET 跟句柄差不多把.

Each MFC socket object encapsulates a handle to a Windows Sockets object. The data type of this handle is SOCKET. A SOCKET handle is analogous to the HWND for a window.
pcyy 2004-08-24
  • 打赏
  • 举报
回复
up
fengge8ylf 2004-08-24
  • 打赏
  • 举报
回复
typedef unsigned int u_int;
typedef u_int SOCKET;
fatrain 2004-08-24
  • 打赏
  • 举报
回复
谢谢诸位的解答。
fatrain 2004-08-24
  • 打赏
  • 举报
回复
谢谢,long int 和 int的字节长度应该是一样的吧
c4313848 2004-08-23
  • 打赏
  • 举报
回复
差不多,应该是unsigned int 吧,

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧