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


Please Help Members By Posting Answers For Below Questions

Define pure virtual function?

564


Is c++ a good beginners programming language?

585


What is a dangling pointer in c++?

666


How is c++ different from java?

563


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

620






which of the following is not an secondary constant a) array b) real c) union

1272


How a new operator differs from the operator new?

626


Is swift faster than c++?

568


Explain the difference between static and dynamic binding of functions?

557


Describe new operator and delete operator?

630


What is the difference between C and CPP?

635


How can you quickly find the number of elements stored in a dynamic array?

580


What is a syntax in c++?

610


If you don’t declare a return value, what type of return value is assumed?

542


the maximum length of a character constant can be a) 2 b) 1 c) 8

602