This could also use the `setsockopt` function in this module to make this a bit easier.