Copied from old .zip

Handles network sockets.