home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,216 of 14,669   
   Jorgen Grahn to lancer6238@yahoo.com   
   Re: IP/UDP/TCP headers in WpdPack   
   24 Nov 09 11:45:28   
   
   92414524   
   From: grahn+nntp@snipabacken.se   
      
   On Tue, 2009-11-24, lancer6238@yahoo.com wrote:   
   > Hi all,   
   >   
   > I can't seem to find any declarations of the IP/UDP/TCP header   
   > structures in the include files of WpdPack 4.0.2,   
      
   What is WpdPack? I don't feel like googling.   
      
   > unlike in Linux   
   > where they are defined in ,  and   
   > . I'm trying to use these headers in Visual Studio .NET   
   > 2003. Do I have to write my own?   
      
   If I were you, I'd avoid trying to struct-map these things. Read and   
   write them octet-by-octets instead. Create utility functions for doing   
   that as appropriate. It's simple, fast and platform-independent.   
      
   Those header files are not even common across all Unixes. Not even   
   across Linux -- depending on what standard you chose to code against   
   you get some of them, and you might get differently named versions.   
   Lots of trouble and non-portability for no gain. It's not as if a   
   struct protects you from changes to the standard IP header format,   
   either -- the ancient RFCs rule, and will always rule.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca