What are raw sockets?

Answers were Sorted based on User's Feedback



What are raw sockets?..

Answer / william

A raw socket is a socket that allows access to packet
headers on incoming and outgoing packets. Raw sockets
always receive the packets with the packet header included
as opposed to non-raw sockets which strip the header and
only receive the packet payload.

Is This Answer Correct ?    30 Yes 1 No

What are raw sockets?..

Answer / leossk

SOCK_RAW , ping uses raw sockets for ICMP

Is This Answer Correct ?    13 Yes 7 No

What are raw sockets?..

Answer / atul sharma

Raw Sockets are independent of the transport layer and the
packet are being routed based on the destination IP
address.As this does not contain the Port related
information So on the destination machine any socket
listening can receive the IP or RAW packets.This has been
practically verified by Me.

Is This Answer Correct ?    5 Yes 6 No

What are raw sockets?..

Answer / saravanan.s

allows only header include pockets.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Unix Socket Programming Interview Questions

Explain the TIME_WAIT state.

1 Answers  


When should I use shutdown()?

1 Answers   Wipro,


Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?

0 Answers  


How many sockets can a port have?

0 Answers  


If bind() fails, what should I do with the socket descriptor?

1 Answers  






How to find other end of unix socket connection?

0 Answers  


What is with the second parameter in bind()?

1 Answers  


How do Sockets Work?

1 Answers  


What is LILO?

2 Answers  


How can I read ICMP errors from connected UDP sockets?

1 Answers  


What exactly does SO_LINGER do?

1 Answers  


How can I listen on more than one port at a time?

1 Answers  


Categories