Solved

Talking To Ethernet Card In Windows/MFC

Posted on 2001-07-20
5
322 Views
Last Modified: 2013-12-03
I need to create a small ethernet hub with a PC connected to a number of custom external devices. I don't know much about ethernet as in the past I have utilised something like a CSocket or a PIPE directly using TCP/IP.

In this case the protocol will be directly on the ethernet and I am wondering if there is a developer kit that allows talking directly to the ethernet card under Windows?

Anybody have any experience of this?

Env: VC++ 6.0, Win NT/2K/9x
0
Comment
Question by:sdj_work
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:jhance
Comment Utility
Can you be more specific about what you are trying to do.  To me, this question mixes terms incorrectly and really obscures the meaning.

0
 

Author Comment

by:sdj_work
Comment Utility
The system will be a Windows based PC that needs to talk to a number of external devices. The devices are likely to be electrical signs (say 4 or 5 each with an Ethernet connection) which I need to communicate with.

I need to send/receive messages to/from the signs using the Ethernet protocol and I am assuming that to do this I will need to talk directly to the card (using an Ethernet Packet), via a developer kit of some kind.

Currently I don't know how I am going to talk to the card. My previous experience of networking has been via TCP/IP, hence I have used Windows Sockets that abstract away from the "packet" level of the protocol.

Hope this is clearer?
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
Comment Utility
>>Ethernet protocol

This is what I mean.  Ethernet is NOT a protocol.  It's a networking physical layer.  Many protocols can be carried over an Ethernet network.

Do you want to use TCPIP?  If so, then WINSOCK is the way to go on a Windows host.

Do you want to use some other protocol?  Unless you are looking for a lot of work for yourself, choose one that has support on your host.

Do you want to send RAW PACKETS?  In that case, you may want to see:

http://www.rawether.net/

for a very useful toolkit and information.
0
 

Author Comment

by:sdj_work
Comment Utility
I want to send a custom defined very simple 5 byte protocol. Can I send this as a part of a RAW PACKET? It seems that rawether.com is what I need.

I am confused as to where "raw packets" and using my own protocol fit in. You have suggested that these form two different options.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now