What are raw sockets, where they are efficient?
Answer Posted / 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 |
Post New Answer View All Answers
What is auto type c++?
In a function declaration what does extern means?
What are features of c++?
What are the advantages of using friend classes?
What is malloc in c++?
Can union be self referenced?
Can you please explain the difference between using macro and inline functions?
Why c++ is so important?
What is constructor in C++?
Explain function overloading and operator overloading.
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 do you understand by a pure virtual member function?
Explain the concept of friend function in c++?
How did c++ start?
Explain what is class definition in c++ ?