In the heyday of the Model T Ford, it was said that you could have any color you wanted, as long as it was black. This obviously poked fun at the idea that there were no other options. Fortunately, sockets are not so restrictive!
The earlier chapters covered the basics of using sockets. It is now appropriate to examine some of the optional features that are available. After you have mastered this chapter's concepts, you'll be ready for the more advanced socket topics that are covered in the remainder of this book. This post will focus on the following topics:
- How to retrieve socket option values with getsockopt(2)
- How to change socket option values with setsockopt(2)
- SO_ PASSCRED and SO_PEERCRED