What are raw sockets, where they are efficient?

Answers were Sorted based on User's Feedback



What are raw sockets, where they are efficient?..

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

What are raw sockets, where they are efficient?..

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

Post New Answer

More C++ General Interview Questions

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?

0 Answers  


What are the advantages of C++ programming compared to C programming?

2 Answers   HAL,


Why would you use pointers in c++?

0 Answers  


Is linux written in c or c++?

0 Answers  


What is the difference between global variables and local variable

0 Answers  






What is lazy initialization in c++?

0 Answers  


Describe exception handling concept with an example?

0 Answers  


Is c++ proprietary?

0 Answers  


Will the following program execute?

0 Answers  


What is virtual destructor? What is its use?

0 Answers  


Write some differences between an external iterator and an internal iterator?

0 Answers  


Implement stack operations with pointers with appropriate exception checks.

0 Answers   Huawei,


Categories