Thread: Streaming data

  1. #1
    Unregistered
    Guest

    Post Streaming data

    Hi,

    I am interested in how to capture all network traffic arriving on the network card. I have searched previous conversations but haven't found the necessary information.

    Idealy, the source of how to read the network card and stream/pipe into a c program. (Senario, similar to a sniffer but allowing the 'programmer' to build in functions for specific results).

    thanks
    Chris

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    44
    Use google and search for 'raw sockets' and the name of your target operating system. That should come up with a least a million hits some of which will have code examples.

    Ian Woods

  3. #3
    Registered User char's Avatar
    Join Date
    Apr 2002
    Posts
    31
    Last edited by char; 04-26-2002 at 08:06 AM.

  4. #4
    Unregistered
    Guest

    Smile

    HairyIan and Char,

    Thanks for your replies.

    I am looking at google now but as you say there are lots of hits. The site for sniffer.c appears to be more useful but I still have to find that part which processes the network card.

    If there are any other suggestions please let me know I will be keeping an i on this.

    Thanks
    Chris

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Some of the more low level stuff will be OS dependant. You might wanna try posting this kinda question in a forum specific to the OS you are intending to use.

    If it's Unix you're after tho....
    http://www.unixgeeks.org/security/ne...r/sniffer.html
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  2. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  3. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  4. Errors
    By Rhidian in forum C Programming
    Replies: 10
    Last Post: 04-04-2005, 12:22 PM
  5. Replies: 1
    Last Post: 07-31-2002, 11:35 AM