Guidelines for Using Socket Types

If you are communicating with an existing application, you must use the same socket type and the same protocol as the existing application.

Raw sockets have a special purpose of interfacing directly to the underlying protocol layer. If you are writing a new protocol on top of Internet Protocol (IP) or wish to use the Internet Control Message Protocol (ICMP), then you must use raw sockets.

You should consider the following factors in choosing a socket type for new applications:


[Back: Socket Types Summary]
[Next: Socket Creation]