Connecting Tech Pros Worldwide Help | Site Map

Data packets in network adapters

Newbie
 
Join Date: May 2009
Posts: 6
#1: Sep 23 '09
Hello friends I need to know how data packets are actually transferred through network adapters...
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#2: Sep 23 '09

re: Data packets in network adapters


This has nothing to do with CSharp specifically. Nor is there any question regarding coding. (moving to networking)

It's really a question for google or wikipedia.
Newbie
 
Join Date: May 2009
Posts: 6
#3: Sep 24 '09

re: Data packets in network adapters


Thanks a lot...But since the network adapters can be programmed in C/C++ i need to explore the thinks in C#...... So i need to know more about it.
sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#4: Sep 27 '09

re: Data packets in network adapters


It sounds like the best place to start would be by Google searching something like "network data transfer tutorial" and downloading WireShark and looking at packets yourself.

What are you looking for? How data is broken up into packets (which a library would handle for you)? How to get your program to interface with an ethernet adapter (though various library calls, again)? Or just a simple tutorial on data/packets and how they're transferred?
Newbie
 
Join Date: May 2009
Posts: 6
#5: Sep 29 '09

re: Data packets in network adapters


@ sicarie thanks man...... I need which (C,C++,or java)libraries are used to program an ethernet adapter.
sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#6: Oct 1 '09

re: Data packets in network adapters


Well, obviously those would be dependent on the language you're using - I'd recommend picking which one you're most familiar with and Google searching "<language> network library".

That should give you what you need. If you're of equal comfort with all 3, I'd recommend Java - it handles a lot of stuff for you, and gives a good idea of all the steps involved. Then you can go back to C++ later and see how all the stuff Java handled for you works, if you're interested.
Newbie
 
Join Date: May 2009
Posts: 6
#7: Oct 6 '09

re: Data packets in network adapters


I go Winpcap library..... it provides huge amount of data.... while reading network adapter.... but i need specific data like packet size... http header or udp packts...
sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#8: Oct 8 '09

re: Data packets in network adapters


Quote:

Originally Posted by maheshinvent View Post

I go Winpcap library..... it provides huge amount of data.... while reading network adapter.... but i need specific data like packet size... http header or udp packts...

I don't understand what you're trying to do - you can use that lib to parse the data, you can pull that information from there. If you're looking to send the data, that depends on what you're trying to do - TCP or UDP, etc...

So what are you attempting to accomplish with this?
Reply