Communication with server through Connection class