simplifies tcp connection class