Static TCPConnection class and functions