找回密码
 注册
查看: 587|回复: 0

请给看看以下的错误.

[复制链接]
发表于 2003-2-17 09:44:14 | 显示全部楼层 |阅读模式
/* Created by Anjuta version 1.0.0 */
/* This file will not be overwritten */

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/wait.h>

#define MYPORT 1490 /*server sniffer port*/
#define BACKLOG 10 /*the max the same time connection*/

int main()

{

printf("%s","hello\n");
struct sockaddr_in serveraddr;

serveraddr.sin_addr.s_addr = inet_addr("192.168.1.0");
printf("%s",inet_atoa(serveraddr.sin_addr));
return (0);
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-25 22:01 , Processed in 0.024057 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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