Xay dung phuong thuc Agent Client gui ban tin REGISTER toi SERVER