/// New Client Event Handler private void OnNewClient(IClientAPI client) { // Subscribe to messages // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; //Profile client.OnRequestAvatarProperties += RequestAvatarProperties; client.OnUpdateAvatarProperties += UpdateAvatarProperties; client.OnAvatarInterestUpdate += AvatarInterestsUpdate; client.OnUserInfoRequest += UserPreferencesRequest; client.OnUpdateUserInfo += UpdateUserPreferences; }
private void ClientConnectHandler(IClientCore clientCore) { if (clientCore is IClientAPI) { IClientAPI client = (IClientAPI)clientCore; // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", AvatarClassifiedsRequestHandler); client.OnClassifiedInfoRequest += ClassifiedInfoRequestHandler; client.OnClassifiedInfoUpdate += ClassifiedInfoUpdateHandler; client.OnClassifiedDelete += ClassifiedDeleteHandler; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdateHandler; client.OnPickDelete += PickDeleteHandler; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdateHandler; // Profiles client.OnRequestAvatarProperties += RequestAvatarPropertiesHandler; client.OnUpdateAvatarProperties += UpdateAvatarPropertiesHandler; client.OnAvatarInterestUpdate += AvatarInterestUpdateHandler; client.OnUserInfoRequest += UserInfoRequestHandler; client.OnUpdateUserInfo += UpdateUserInfoHandler; } }
/// New Client Event Handler private void OnNewClient(IClientAPI client) { // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; // Picks //TODO: there is an error generated here in the Grid as we've removed the // need for this and wrapped it down below. This needs to be fixed. // This applies to any reqeusts made for general info. //client.AddGenericPacketHandler("avatarpicksrequest", HandlePickInfoRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; // Interests client.OnRequestAvatarProperties += new RequestAvatarProperties(client_OnRequestAvatarProperties); client.OnAvatarInterestsUpdate += AvatarInterestsUpdate; }
public void NewClient(IClientAPI client) { client.OnRequestAvatarProperties += RequestAvatarProperty; client.OnUpdateAvatarProperties += UpdateAvatarProperties; client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoRequest += ClassifiedInfoRequest; client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; client.OnClassifiedGodDelete += GodClassifiedDelete; client.OnUserInfoRequest += UserPreferencesRequest; client.OnUpdateUserInfo += UpdateUserPreferences; //Track agents client.OnTrackAgent += TrackAgent; client.OnFindAgent += TrackAgent; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; //Profile client.OnAvatarInterestUpdate += AvatarInterestsUpdate; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; client.OnPickGodDelete += GodPickDelete; }
/// New Client Event Handler private void OnNewClient(IClientAPI client) { // Subscribe to messages // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; }
/// New Client Event Handler private void OnNewClient(IClientAPI client) { // Subscribe to messages // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoRequest += ClassifiedInfoRequest; client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; //Profile client.OnRequestAvatarProperties += RequestAvatarProperties; client.OnUpdateAvatarProperties += UpdateAvatarProperties; client.OnAvatarInterestUpdate += AvatarInterestsUpdate; client.OnUserInfoRequest += UserPreferencesRequest; client.OnUpdateUserInfo += UpdateUserPreferences; AgentCircuitData clientinfo = client.RequestClientInfo(); string agentID = client.AgentId.ToString(); string agentIP = client.RemoteEndPoint.ToString(); string agentName = clientinfo.Name; // Fill parameters for informing jOpenSim about this user. Hashtable paramTable = new Hashtable(); paramTable["agentID"] = agentID; paramTable["agentIP"] = agentIP; paramTable["agentName"] = agentName; // Generate the request for transfer. Hashtable resultTable = GenericXMLRPCRequest(paramTable, "clientInfo"); }
/// <summary> /// Raises the new client event. /// </summary> /// <param name='client'> /// Client. /// </param> void OnNewClient(IClientAPI client) { //Profile client.OnRequestAvatarProperties += RequestAvatarProperties; client.OnUpdateAvatarProperties += AvatarPropertiesUpdate; client.OnAvatarInterestUpdate += AvatarInterestsUpdate; // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", ClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedInfoRequest += ClassifiedInfoRequest; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", PicksRequest); client.AddGenericPacketHandler("pickinforequest", PickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", NotesRequest); client.OnAvatarNotesUpdate += NotesUpdate; }
public void OnNewClient(IClientAPI client) { client.AddGenericPacketHandler("requestonlinenotification", OnRequestOnlineNotification); }
/// <summary> /// Raises the new client event. /// </summary> /// <param name='client'> /// Client. /// </param> void OnNewClient(IClientAPI client) { //Profile client.OnRequestAvatarProperties += RequestAvatarProperties; client.OnUpdateAvatarProperties += AvatarPropertiesUpdate; client.OnAvatarInterestUpdate += AvatarInterestsUpdate; // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", ClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedInfoRequest += ClassifiedInfoRequest; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", PicksRequest); client.AddGenericPacketHandler("pickinforequest", PickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", NotesRequest); client.OnAvatarNotesUpdate += NotesUpdate; // Preferences client.OnUserInfoRequest += UserPreferencesRequest; client.OnUpdateUserInfo += UpdateUserPreferences; }
/// New Client Event Handler private void OnNewClient(IClientAPI client) { // Subscribe to messages // Classifieds client.AddGenericPacketHandler("avatarclassifiedsrequest", HandleAvatarClassifiedsRequest); client.OnClassifiedInfoUpdate += ClassifiedInfoUpdate; client.OnClassifiedDelete += ClassifiedDelete; // Picks client.AddGenericPacketHandler("avatarpicksrequest", HandleAvatarPicksRequest); client.AddGenericPacketHandler("pickinforequest", HandlePickInfoRequest); client.OnPickInfoUpdate += PickInfoUpdate; client.OnPickDelete += PickDelete; // Notes client.AddGenericPacketHandler("avatarnotesrequest", HandleAvatarNotesRequest); client.OnAvatarNotesUpdate += AvatarNotesUpdate; //Profile //client.OnAvatarInterestRequest += AvatarInterestRequest; client.OnAvatarInterestUpdate += AvatarInterestsUpdate; client.OnUserInfoRequest += UserPreferencesRequest; client.OnUpdateUserInfo += UpdateUserPreferences; }
void OnNewClient(IClientAPI client) { if(client is ModularRex.RexNetwork.RexClientViewBase) { if (!client.AddGenericPacketHandler("wi_req", HandleWorldInventoryGenericMessage)) m_log.Warn("[WORLDINVENTORY]: Could not add generic message handler for user"); } }
private void HandleNewClient(IClientAPI client) { client.AddGenericPacketHandler("test", HandleGenericMessage); }