Oh and while others may not have a problem with this, posting code with line numbers (IOW not ready to compile) slows the help process....
BTW what is this?
Code:
*/running to the localhost/*
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <strings.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
int socket_fd;
struct sockaddr_in dest;
struct hostent *hostptr;
struct { char head; u_long body; char tail; } msgbuf;
socket_fd = socket (AF_INET, SOCK_DGRAM, 0);
<snip>
unsigned sleep(unsigned seconds); <<== looks like you are declaring a function, not calling one...???
}
return 0;
}
Also your comment tags are backwards at the top of the file negating the first 20 or so lines of the code....
J.