Connect Class replace AClient and AServer