I'm using a bunch of layed maps to try and store information about some network traffic in a packet sniffing application. For example if I have 4 packets going from 192.1.1.1 from port 1 to 255.255.255.255 port 2 the structure should store the IPs and Ports as Keys and the data should be the...
What I really need is a way to have a loop run for one hour, then reset and begin again. How would I use some kind of timing device and what type of files do I need to include? This portion of my program is intended for windows. Any help or finger points in a right direction or website would...
The program I'm writing is pulling packets from a network connection. Then i'm using a simple ring buffer and threads to pass the info to a buffer and pull them off and do work. The ring class (which is templated) has a member mutex. When get get function (which is taking from the ring and is...
Does anyone know how to use some kind of a sleep command in windows, or what include files I would need? I'm trying to use it for debugging purposes. Thanks a lot.
OK, the basic setup of this project is basically one function that is pulling information from a hardware device when its available in the form of a large character array and then processing that information. The problem is that i can't do too much processing because i don't want to miss any...
I'm reading in a *u_char that should be a bunch of hexidecimal flags and then outputing using cout<<. And low and behold, it wants to give me lots of ascii characters. How do I get the cout<< operator to stop converting to ascii and leave them how they are??.
I get information about an Ethernet device on my computer using a function call that returns a sockaddr* struct. when i output the sa_data in that struct and expect to get my IP (should be a 192.x.x.x cause i'm off a local switch) and my netmask, i'm getting numbers like
"1694607552" for IP...
Ok, i'm writing an application on my windowsXP using winpcap and i can detect two network adapters, my NIC, and some "NPF_GenericNdisWanAdapter Generic NdisWan adapter" when i try to retrieve the devicelist->addr information from it, it comes back as a null pointer. What is this adaper, and...
Ok here goes,
I need to write an application that is going to monitor information coming into, and going out of my NIC. I have a decent grap on TCP/IP and all that good stuff. But now the question is how to write a program to interact with all of this. I'd like it to be portable and I've...
Ok, i'm supposed to do some research and development into a software agent that will eventually deal w/ security. Problem is, i've never programmed windows applications before and the first step is doing something with web-browsing pattern recognition and trying to make this dumb box a little...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.