January 2002
Beginner
480 pages
13h 15m
English
While we’ve defined the presenceCB()
subroutine to handle
<presence/> packets, we haven’t actually told
the Jabber library about it. The call to the
setPresenceHandler() method of the connection object
does this for us, performing the “Register handler” step shown in
Figure 8-6. The steps shown in
Figure 8-6 are described in
Section 8.3.4.
con.setPresenceHandler(presenceCB)
![]() |
Read now
Unlock full access