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

Evaluate !(1&&1||1&&0) a) Error b) False c) True

0 Answers  


What is a local reference?

0 Answers  


What are dynamic type checking?

0 Answers  


Explain polymorphism?

0 Answers  


How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?

0 Answers  






Explain the term memory alignment?

0 Answers  


What is this pointer in c++?

1 Answers  


What is endl c++?

0 Answers  


Which compiler does turbo c++ use?

0 Answers  


How delete [] is different from delete?

0 Answers  


What is a namespace in c++?

0 Answers  


Is c++ a software?

0 Answers  


Categories