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 |
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What are the advantages of C++ programming compared to C programming?
Why would you use pointers in c++?
Is linux written in c or c++?
What is the difference between global variables and local variable
What is lazy initialization in c++?
Describe exception handling concept with an example?
Is c++ proprietary?
Will the following program execute?
What is virtual destructor? What is its use?
Write some differences between an external iterator and an internal iterator?
Implement stack operations with pointers with appropriate exception checks.