Raw socks tutorial

This is a discussion on Raw socks tutorial within the C Programming forums, part of the General Programming Boards category; I recently completed the beej's guide and wrote a few network programs after that. But, I really want to learn ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    103

    Raw socks tutorial

    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?

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,047
    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.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    60
    Quote Originally Posted by Poincare View Post
    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?
    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.

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    103
    Should I be understanding network structures since I just did beej's guide?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 06:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 01:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21