Re: raw socket programming SOLVED

2003-07-11 Thread Alin-Adrian Anton
Wes Peters wrote: On Saturday 05 July 2003 08:01 pm, Alin-Adrian Anton wrote: Yes, it works now, with these includes: --- #include sys/types.h #include sys/socket.h #include stdio.h #include string.h #include errno.h #include netinet/in_systm.h #include netinet/in.h

Re: raw socket programming SOLVED

2003-07-10 Thread Wes Peters
On Saturday 05 July 2003 08:01 pm, Alin-Adrian Anton wrote: Yes, it works now, with these includes: --- #include sys/types.h #include sys/socket.h #include stdio.h #include string.h #include errno.h #include netinet/in_systm.h #include netinet/in.h #include

Re: raw socket programming SOLVED

2003-07-08 Thread Terry Lambert
David A. Gobeille wrote: Shouldn't the #included files themselves #include headers they are dependant on? With the use of #ifndef and #define in the headers to keep them from being #included more than once? It seems silly(more work) for the programmer to have to arrange everything in a

Re: raw socket programming SOLVED

2003-07-07 Thread Alin-Adrian Anton
Harti Brandt wrote: On Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AAHarti Brandt wrote: AA AAOn Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AA In file included from raw.c:7: /usr/include/netinet/ip.h:156: syntax error before `n_long' /usr/include/netinet/ip.h:159: syntax error before

Re: raw socket programming SOLVED

2003-07-07 Thread David A. Gobeille
Alin-Adrian Anton wrote: Harti Brandt wrote: On Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AAHarti Brandt wrote: AA AAOn Sun, 6 Jul 2003, Alin-Adrian Anton wrote: AA In file included from raw.c:7: /usr/include/netinet/ip.h:156: syntax error before `n_long'

Re: raw socket programming SOLVED

2003-07-07 Thread Peter Pentchev
On Mon, Jul 07, 2003 at 10:09:05AM -0500, David A. Gobeille wrote: [snip] Shouldn't the #included files themselves #include headers they are dependant on? With the use of #ifndef and #define in the headers to keep them from being #included more than once? It seems silly(more work) for