Because of errors between VS 2002 and 2003, I've decided to put the two projects to solve resx and obsolete warning troubles.

Introduction

This code contains a class for socket: ICMP, TCP, UDP, raw TCP, raw UDP, raw IP, and a class for IPHelper functions. All the classes for socket are made with the same view: provide handler for events like connected, closed, closed_by_remote_side, data_arrival, error ....

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

Not sure if this is the right place for this question, but I hope someone will be able to help me.
Using C++ (not MC) and vs 2005 - how can I find the IP address that is visible as my computer from outside my house.
At the moment, I am using www.whatismyip.com - but what if I wnated to do it programatically - from within my program

The SendARP function only gets first 4 bytes of the MAC returned correctly, the pMacAddr[0] is filled with correct MAC, but pMacAddr[1] never changes from the default value. Any one has an idea how to fix it?

Could you please convert to VS2005 because I keep getting errors while trying to debug and run... I can't debug it because of one error:"The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' FormScan.cs Line 1648 Column 28"

Hi,
Only multithreading troubles are present only with user interface. Other class can be used without changes.
I've tried it with VS 2005, and you're right, there's lot of multithreading troubles with Windows.Form due to Microsoft changes. A lot of them can be resolved by using microsoft solution (see msdn) but in easiest way, as a lot of access are done only to read interface text fields or option, you have to make new var for each field. It's quite long and boring. I will do it, but I've another project to finish taking 3 months, so I won't write a 2005 version before.

Another point you will notice, is that VS2005 install require SP2, and SP2 doesn't allow packet forging. For more informations see http://jacquelin.potier.free.fr/networkstuff/#known_troubles

Hi
PerformanceCounter is not supported by win98 and win CE (next version of networkstuff will avoid to throw error); but should be supported by 2003 server. To check available PerformanceCounter on your machine, just launch perfmon.msc (windows/run). Next, under system monitor, click the add button to add a graph: all available performance counter will be shown. you can use the perfom c# sample available in the msdn 2003 (PerfMon sample [C#] in the index). Tell me if some of counter are missing

Hello Jacquelin,
I downloaded the VS 2002 code, builded the solution and got the following message: ...'arp_header.cs' could not be opened ('The system cannot find the file specified. ')
Please advise what I'm doing wrong?
Thanks, Roelf

just remove it from project. Arp can't be forge from windows API (windows just allows to access IP stack). It was a try before a removal. I do appoligize it still in vs2002 source code. Remember the vs 2002 project is no more maintained and still contains severals bugs removed in the 2003 projects.
Best Regards
Jacquelin