Use "channel" naming consistently throughout.
Wordsmith.
Initialize opt_errno to avoid incorrectly detecting an error from getsockopt.