![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist Programmer
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3
![]() |
Re: promiscious sockets
You want to use raw sockets. This is easy to do in c, but I don't know how to do it in C#. I implemented a TCP/IP stack in Java and used Java Native Interface. This allowed me to bind it to C. I'm not up on my C# enough to know if that's possible.
Try this link: http://bytes.com/forum/thread249594.html Keep in mind that you'll be listening to everything... and you won't even get Ethernet frames parsed for you. You'll have to manage that yourself. |
|
|
|
|
|
#12 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
Re: promiscious sockets
alright that is just perfect... i think i can do raw sockets in C#. thanks Harakim
|
|
|
|
|
|
#13 |
|
Hobbyist Programmer
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3
![]() |
Re: promiscious sockets
let me get one thing straight first, When you recieve on a raw socket you get the payload as well as the network layer - ip header. from there it is up to you to read and manupilate them as u want
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple BSD Sockets Problem | Soulstorm | C | 16 | Mar 7th, 2008 5:02 PM |
| Sockets Lib | King | C++ | 7 | Apr 10th, 2007 7:17 AM |
| Hello Sockets | hbe02 | C++ | 7 | May 21st, 2006 6:34 AM |
| help with sockets, having a client recieve data as well as send. | cypherkronis | Python | 7 | Jul 1st, 2005 5:59 PM |
| Windows sockets programming | davidsiaw | C | 1 | Jun 15th, 2005 6:17 AM |