clean up and document non/constness of address references
cosmetic: remove trailing whitespace
modernize sslsock