Linux Socket Programming by Example - Warren Gay

< BACKCONTINUE >
159231153036212041242100244042145096184016146223183074028121223008110134185247166116169142210

What's Next

In this chapter, you learned that socket options can be fetched and set using the functions getsockopt(2) and setsockopt(2), respectively. It was shown that socket options have levels and various SOL_SOCKET level options were discussed.

Many options required Boolean values, which are defined in the int data type. It was shown that some other options such as SO_LINGER, for example, required a special structure to be used instead.

A number of socket options relate to advanced uses of sockets, which have not been covered yet. You will see these options again, as the more advanced topics are encountered in the chapters that follow. The next chapter discusses broadcasting with UDP, and consequently you are now prepared to enable the SO_BROADCAST option and use it!

< BACKCONTINUE >