Prototype of complete client connection