The socket examples are programming fragments that illustrate a socket function. They cannot be used in an application program without modification. They are intended only for illustrative purposes and are not for use within a program.
Note: All socket applications must be compiled with _BSD set to a specific value. Acceptable values are 43 and 44. In addition, most applications should probably include the Berkeley Software Distribution (BSD) libbsd.a library.