Functional socket classes: tcp and ssl.
 Now socket functions are more generic.