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 |
when can we use virtual destructor?
7 Answers HCL, HP, Virage Logic,
Can circle be called an ellipse?
What is flush () in c++?
Does std endl flush?
What is the difference between the functions memmove() and memcpy()?
What are the different data types present in C++?
What is the use of 'using' declaration in c++?
What is the difference between shallow copy and deep copy?
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
What is the sequence of destruction of local objects?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What is the use of vtable?