[JDEV] Presence Probe problem
Kang-pen Chen
b86059 at ee.ntu.edu.tw
Thu Aug 10 21:53:40 CDT 2000
I am now writing a a simple transport, say "list" transport.
Its function is just like a forwarder.
For example,
When I send a message to "kpchen at list.jabber.org", it will want to
transfer to "kpchen2 at jabber.org" or "kpchen3 at jabber.org".
But the list transport doesn't know whether kpchen2, kpchen3 are online or
not.
Therefore, the list transport must first send <presence type="probe"
to="kpchen2 at jabber.org"> and <presence type="probe"
to="kpchen3 at jabber.org">. So that it can make sure that kpchen2 & kpchen3
are online.
However, I have a question: I don't know if I can send such a "probe"
in a transport program? Because in 8/9 I sent a e-mail also to
jdev at jabber.org. After the "etherx_handle_packet" function terminated.
My program had some problems in "tstream.c". It either had segmentation
fault or run the tstream.c:263,285 repeatedly(non-stop). I didn't know
what happened.
I guessed I can't send such a probe in a transport program.
But if I can't send such a probe, what can I do to ensure that kpchen2 or
kpchen3 is online?
Sincerely,
Kang-pen Chen
National Taiwan Univ.
EE Dept.
More information about the JDev
mailing list