|

楼主 |
发表于 2004-4-12 19:45:29
|
显示全部楼层
最初由 wuhu 发表
试试这个- if (connect =(sockfd,(struct sockaddr *)&servaddr, sizeof(sevaddr))<0);
复制代码
sorry ,i did not sait to you about the socket type,
The program use the BSD socket ,so the connect() form is :- int connect( int s,
- const struct sockaddr * name,
- size_t namelen );
复制代码 |
|