JGSL_query

Jabber query

Title Jabber query
Author(s) LiXizhi
Date 2008/6/27,
File script/kids/3DMapSystemNetwork/JGSL_query.lua

Description

Member Functions

query.GetMiniProfile

boolean: true to enable all message logging. query.dump_query_msg = nil;

query.neuronfile = "script/kids/3DMapSystemNetwork/JGSL_query.lua"; how many milliseconds to time out. query.QueryTimeout = 7000;

mapping from JID to mini profile call back functions. local MiniProfile_pool = {}; local fakeurl_query_miniprofile = "http://jgsl.pala5.com/query/profile" change to a day local cache_policy_query_miniprofile = Map3DSystem.localserver.CachePolicy:new("access plus 2 days") getting user profile like user id and full name from an active JID.

  • param JID : whom we are requesting
  • param callbackFunc : function(JID, profile) end, where JID is JID and profile is a table containing fields values.
  • param cache :_policy: if nil, it default to 2 day.
  • param fields :

syntax

function query.GetMiniProfile(JID, callbackFunc, cache_policy)

parameters

JID whom we are requesting
callbackFunc  
cache _policy: if nil, it default to 2 day.
policy  

query.OnTimer

mapping from jid to world query call back functions. local World_pool = {}; query.WorldInfoTimerID = 1100;

syntax

function query.OnTimer(timerid, jid)

parameters

timerid  
jid  

query.log

log some data

syntax

function query.log(...)
Topic revision: r1 - 2008-02-29 - LiXizhi
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback