|
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' |
|