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 |
Are php strings immutable?
What are the characteristics of friend functions?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Write about the access privileges in c++ and also mention about its default access level?
The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance
Do inline functions improve performance?
Does std endl flush?
How does list r; differs from list r();?
What are the advantages of using typedef in a program?
What is a buffer c++?
Is c++ a difficult language?
What happens when a function throws an exception that was not specified by an exception specification for this function?