I recently completed the beej's guide and wrote a few network programs after that. But, I really want to learn about raw sockets. So far, all the tutorials I've looked at are either too short or don't make any sense at all. Help?
I recently completed the beej's guide and wrote a few network programs after that. But, I really want to learn about raw sockets. So far, all the tutorials I've looked at are either too short or don't make any sense at all. Help?
Better to read-up about the dlpi APIs than to learn raw sockets which are very sparsely supported.
Last edited by itCbitC; 08-14-2009 at 02:30 PM.
you don't understand because you have no idea about network structures. If you code network through "raw sock", the code is 3-4 times longer than through "stream sock". Of course, you have to handle data and more things to do like TCP/UDP header, info extract ....
Basically, the way you code "raw sock" isn't different much from "stream sock" since most of functions are same, execept prototype, more structs.
Should I be understanding network structures since I just did beej's guide?