May be you overlooked in placing the printf out of the while(1) loop.
> > while(1)
> > {
> > read(create_socket,(struct datagram*)&ipdgram,sizeof(ipdgram));
> > //printf("%s",ipdgram.data);
> > }
> > printf("%s",ipdgram.data);
> > close(create_socket);
-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help
