Thread: raw sockets?

  1. #1
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    raw sockets?

    What is raw sockets?

    And how do I work with them, how do I send and how do I recv?


    Thanks.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    a raw socket allows instead of the operating system deciding and managing tcp, udp, icmp or other protocols, you will manage them yourself. this means you have a lot more power and can use the protocol directly and do many more things (including evil ones ; ) ) a sample program is ping which needs to take direct advantage of creating and sending icmp packets to work. it uses a raw socket for this.

    good tutorial: http://fsix.net/files/raw_socket.txt

  3. #3
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    Thanks alot, I've been looking for a good tutorial on the subject.

    But what about the Data Link, does the raw socket control this layer as well, or is it just riding it?

    If so, how can I control this layer?


    Thanks again.
    Last edited by Devil Panther; 11-01-2003 at 01:30 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 3way handshake raw sockets
    By linuxtest in forum Linux Programming
    Replies: 2
    Last Post: 10-11-2008, 05:29 PM
  2. Raw Sockets and SP2...
    By Devil Panther in forum Networking/Device Communication
    Replies: 11
    Last Post: 08-12-2005, 04:52 AM
  3. Raw Sockets problem.
    By Mad_guy in forum C Programming
    Replies: 3
    Last Post: 07-03-2005, 03:14 PM
  4. Raw Sockets, Filter Packets?
    By ew16301 in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-28-2005, 07:52 AM
  5. Problem with Raw Sockets
    By Encrypted in forum Linux Programming
    Replies: 2
    Last Post: 04-30-2003, 04:38 PM