Connection class split in to server and Client as behaviour will be different.