A set of convenient abstract socket functions will help internal components, such as the server, work more efficiently.