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 |
Can you declare an array without a size in c++?
Why is it called c++?
Can c++ be faster than c?
Will rust take over c++?
What is difference between shallow copy and deep copy? Which is default?
what is data abstraction in C++?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What is the purpose of the noexcept keyword?
What is a friend function in c++?
What is c++ mutable?
Do we have private destructors?
what is the difference between overloading & overriding? give example.