Remove the SOCKS socket, and replace the functionality with utility functions.