QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 717|回复: 1

求教:地址族的结构问题(网络)

[复制链接]
发表于 2004-4-29 14:45:46 | 显示全部楼层 |阅读模式
sprintf( cmd, "PORT %d,%d,%d,%d,%d,%d\r\n",
sin.sin_addr.S_un.S_un_b.s_b1,
sin.sin_addr.S_un.S_un_b.s_b2,
sin.sin_addr.S_un.S_un_b.s_b3,
sin.sin_addr.S_un.S_un_b.s_b4,
port>>8, port&0xff );
上面的一段代码中的S_un.S_un_b.****是在哪里定义的啊?
编译老是出错...
如下:ftp_demo.c: In function `create_datasock':
ftp_demo.c:184: structure has no member named `S_un'
ftp_demo.c:185: structure has no member named `S_un'
ftp_demo.c:186: structure has no member named `S_un'
ftp_demo.c:187: structure has no member named `S_un'
 楼主| 发表于 2004-4-29 15:40:29 | 显示全部楼层
这个是在winsock里的
我ft
知道了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 10:55 , Processed in 0.038242 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表