What are raw sockets, where they are efficient?
Answers were Sorted based on User's Feedback
Answer / achal ubbott
Raw sockets are useful when you want to inject or capture
almost anything(without IP or TCP/UDP headers and the CRC)
on to the ethernet. They operate in Data Link Layer of
TCP/IP model.
Unix/Linux have been supporting them since ages. But
Windows have recentlly stopped their support, because of
security hazards. On windows OS you would have to use
Winpcap network driver library to play with these
sockets.It bypasses the OS's network stack.
cheers
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / manjunath gn
Raw sockets are the sockets created at Data link layer.
They are useful in layer 2 communication
| Is This Answer Correct ? | 3 Yes | 1 No |
What are arithmetic operators?
What is the difference between public, private, protected inheritance?
What is the difference between const and constexpr?
What is the this pointer?
Explain the problem with overriding functions
Should the this pointer can be used in the constructor?
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
What is the difference between method and message?
What is buffering in c++?
Which one between if-else and switch is more efficient?
What is boyce codd normal form in c++?
What is c++ map?