📄 c6941.htm
字号:
<HTML
><HEAD
><TITLE
>Messages, Presence, and Presence Subscription</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="Programming Jabber"
HREF="book1.htm"><LINK
REL="UP"
TITLE="Putting Jabber's Concepts to Work"
HREF="p3608.htm"><LINK
REL="PREVIOUS"
TITLE="User Registration Script"
HREF="x6787.htm"><LINK
REL="NEXT"
TITLE="CVS notification"
HREF="x6950.htm"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Programming Jabber</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x6787.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x6950.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="JABTDG-CH-7"
>Chapter 7. Messages, Presence, and Presence Subscription</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="c6941.htm#JABTDG-CH-7-SECT-INTRO"
></A
></DT
><DT
><A
HREF="x6950.htm"
>CVS notification</A
></DT
><DT
><A
HREF="x7229.htm"
>Dialup system watch</A
></DT
><DT
><A
HREF="x7499.htm"
>Presence-sensitive CVS notification</A
></DT
></DL
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="JABTDG-CH-7-SECT-INTRO"
></A
></H1
><P
>Now that we have a decent grounding in the Jabber protocol and technology,
let's put it to work for us. This chapter fits Jabber into solutions for
two or three common problems, and shows how the technology and features
lend themselves very well to application-to-person (A2P) scenarios.</P
><P
>By way of introduction, we'll have a look at constructing and sending
simple Jabber messages, to effect an "in your face" notification mechanism
for a version control system. We'll also introduce a usage of the
<TT
CLASS="LITERAL"
><presence/></TT
> element as an availability
indicator for connecting systems. Finally we'll combine the two features
(<TT
CLASS="LITERAL"
><message/></TT
> and the concept of
<I
CLASS="EMPHASIS"
>availability</I
>) to make the notification mechanism
"sensitive" to the presence of the person being notified. </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x6787.htm"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x6950.htm"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>User Registration Script</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="p3608.htm"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>CVS notification</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -