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

simple c++ program for "abcde123ba" convert "ab321edcba" with out using string

5 Answers  


What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


Tell me difference between constant pointer and pointer to a constant.

0 Answers   Honeywell, Zomato,


When copy constructor can be used?

4 Answers   Symphony,


Hi i need to Acess a variable "int Intval" in the below mentioned code .How to Access it guys i am waiting for your reply

3 Answers  






Why should you learn c++?

0 Answers  


What are the various compound assignment operators in c++?

0 Answers  


Is c++ built on c?

0 Answers  


Where and why do I have to put the "template" and "typename" keywords?

0 Answers  


Check for Balanced Parentheses using Stack?

1 Answers  


Which is the best c++ compiler?

0 Answers  


Explain what you mean by a pointer.

0 Answers   TCS,


Categories