---++!! !JGSL_query %TOC{title="Contents:"}% %STARTINCLUDE% ---++ 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__ <verbatim>function query.GetMiniProfile(JID, callbackFunc, cache_policy)</verbatim> __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__ <verbatim>function query.OnTimer(timerid, jid)</verbatim> __parameters__ | *timerid* | | | *jid* | | ---++++ !query.log log some data __syntax__ <verbatim>function query.log(...)</verbatim> %STOPINCLUDE%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2008-02-29
-
LiXizhi
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback