|
/* 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);
} |
|