Networking constants and support functions
