Click here to Skip to main content
15,916,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUh oh... Pin
Ravi Bhavnani18-Oct-01 2:55
professionalRavi Bhavnani18-Oct-01 2:55 
GeneralRe: Uh oh... Pin
Özgür18-Oct-01 5:40
Özgür18-Oct-01 5:40 
GeneralRe: SMTP Error Code Pin
Obliterator18-Oct-01 3:45
Obliterator18-Oct-01 3:45 
GeneralRe: SMTP Error Code Pin
Özgür18-Oct-01 5:32
Özgür18-Oct-01 5:32 
GeneralRe: SMTP Error Code Pin
Obliterator18-Oct-01 5:52
Obliterator18-Oct-01 5:52 
QuestionHow to Send/Recieve Packets in Client/Server environment based on MAC address ONLY? Pin
AliBaba17-Oct-01 9:21
AliBaba17-Oct-01 9:21 
AnswerRe: Answer is "NO". Pin
Masaaki Onishi17-Oct-01 15:26
Masaaki Onishi17-Oct-01 15:26 
GeneralRe: Answer is "NO". Pin
18-Oct-01 4:24
suss18-Oct-01 4:24 
Thank you very much for the reply. But correct me if I'm wrong.

When sending TCP with Winsock, doesn't Winsock package the packets with extra headers once it reaches the Link Layer of the OSI model. Actually, at every stage a corresponding header is append to the packet, i.e. IP layer, IP header is added to the packet? Once the packet reaches the Link or Hardware Layer, the system performs an ARP cache lookup to see if the destination IP resolves to a mac address. If it does, the system sends the packet off. If not, it performs a mac address broadcast (ARP lookup) and wait for a reply to who this packet belongs to.

If this is true, then can't we create a raw package with all the correct headers, except the IP address section which is set to NULL and send it off? On each client, have it listen for incoming messages and have it do some packet verification at the Network Card Driver level (NDIS).

I have looked into NDIS, and believe it is the solution to this problem. The only thing I'm not sure of is, upon a TCP/IP send in general, is this packet broadcast or sent directly to the destination? If it is sent directly to the destination, how does it know where to go, without having to go through every other non-destination hosts?

The Internet or Intranet consist of more than one PC. As such, there is no hard wire link from source to destination. Which lead me to believe that at the Link/Hardware level, a broadcast of the packet is perform. And it is the resposibility of the NIC Driver (NDIS) to validate the packet as belonging to that particular system.

Note: This application I'm working on is more than likely reside within an Intranet.
Generalpartition of hard disk Pin
Peter Molnar17-Oct-01 9:12
Peter Molnar17-Oct-01 9:12 
GeneralRe: partition of hard disk Pin
Christian Graus17-Oct-01 11:19
protectorChristian Graus17-Oct-01 11:19 
GeneralRe: partition of hard disk Pin
Christian Graus17-Oct-01 12:12
protectorChristian Graus17-Oct-01 12:12 
GeneralRe: partition of hard disk Pin
Sam C17-Oct-01 12:22
Sam C17-Oct-01 12:22 
QuestionHow to Send/Recieve Packets in Client/Server environment based on MAC address ONLY? Pin
AliBaba17-Oct-01 9:09
AliBaba17-Oct-01 9:09 
AnswerRe: How to Send/Recieve Packets in Client/Server environment based on MAC address ONLY? Pin
RobJones17-Oct-01 11:39
RobJones17-Oct-01 11:39 
GeneralRe: How to Send/Recieve Packets in Client/Server environment based on MAC address ONLY? Pin
AliBaba17-Oct-01 14:14
AliBaba17-Oct-01 14:14 
Generalicon topic. please help Pin
Vu Nguyen17-Oct-01 6:45
Vu Nguyen17-Oct-01 6:45 
GeneralRe: icon topic. please help Pin
Michael P Butler17-Oct-01 8:11
Michael P Butler17-Oct-01 8:11 
GeneralRe: icon topic. please help Pin
syedhassan417-Oct-01 10:21
syedhassan417-Oct-01 10:21 
Generalusing CAsyncSocket class without mfc Pin
Kuniva17-Oct-01 4:37
Kuniva17-Oct-01 4:37 
GeneralRe: using CAsyncSocket class without mfc Pin
Jon Hulatt17-Oct-01 6:05
Jon Hulatt17-Oct-01 6:05 
GeneralUSB Pin
Obliterator17-Oct-01 4:21
Obliterator17-Oct-01 4:21 
GeneralRe: USB Pin
J Patel17-Oct-01 4:39
J Patel17-Oct-01 4:39 
GeneralRe: USB Pin
Obliterator17-Oct-01 5:31
Obliterator17-Oct-01 5:31 
GeneralRe: USB Pin
#realJSOP17-Oct-01 5:39
professional#realJSOP17-Oct-01 5:39 
GeneralRe: USB Pin
Obliterator17-Oct-01 5:49
Obliterator17-Oct-01 5:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.