centralisation of TCP/IP functions