Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 10th, 2008, 5:59 PM   #11
Harakim
Hobbyist Programmer
 
Join Date: May 2006
Location: West Jordan, Utah, United States
Posts: 176
Rep Power: 3 Harakim is on a distinguished road
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.
Harakim is offline   Reply With Quote
Old Apr 11th, 2008, 8:56 AM   #12
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
Re: promiscious sockets

alright that is just perfect... i think i can do raw sockets in C#. thanks Harakim
hbe02 is offline   Reply With Quote
Old Apr 11th, 2008, 8:58 AM   #13
hbe02
Hobbyist Programmer
 
hbe02's Avatar
 
Join Date: Mar 2006
Location: Lebanon
Posts: 148
Rep Power: 3 hbe02 is on a distinguished road
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
hbe02 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC