亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? x1581.htm

?? Its a xmpp protocol book
?? HTM
?? 第 1 頁 / 共 2 頁
字號:
<HTML
><HEAD
><TITLE
>Server Configuration</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="Server Architecture and Configuration"
HREF="c1223.htm"><LINK
REL="PREVIOUS"
TITLE="An Overview of the Server Architecture"
HREF="x1234.htm"><LINK
REL="NEXT"
TITLE="A Tour of jabber.xml"
HREF="x1740.htm"></HEAD
><BODY
CLASS="SECT1"
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="x1234.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. Server Architecture and Configuration</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x1740.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="JABTDG-CH-4-SECT-4.2"
>Server Configuration</A
></H1
><P
>At this stage, we should be fairly comfortable with the notion of a 
<B
CLASS="COMMAND"
>jabberd</B
> backbone and a set of components that combine
to provide the features needed for a complete messaging system. 
We've looked at fragments of configuration in the previous section; now
it's time to examine the configuration directives in more detail. </P
><P
>It's not uncommon for people installing a Jabber server for the first time
to be daunted (I was terrified!) by the contents of the 
<TT
CLASS="FILENAME"
>jabber.xml</TT
> configuration file. But really, for the 
most part, it's just a collection of component descriptions&mdash;what those
components are, how they're connected, what packets they are to process,
and what their individual configuration is. </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="JABTDG-CH-4-SECT-4.2.1"
>Component instances</A
></H2
><P
>There's a concept that encompasses Jabber's configuration approach that
is taken from the object-oriented (OO) world&mdash;the concept of objects
(and classes) and instances thereof. In Jabber server configuration,
specifically
the description of the components that are to make up a particular Jabber
server, we talk about <I
CLASS="EMPHASIS"
>instances</I
> of components, not
components directly.</P
><P
>In other words, a component is something generic that is written to provide
a specific service or set of services; when we put that component to use
in a Jabber server, we customize the characteristics of that component by
specifying detailed configuration pertaining to how that component will 
<I
CLASS="EMPHASIS"
>actually</I
> work. We're creating an "instance" of that
component.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="JABTDG-CH-4-SECT-4.2.2"
>A typical component instance description</A
></H2
><P
>Each component instance description follows the same approximate pattern:</P
><P
></P
><UL
><LI
><P
>Declaration of the component type</P
></LI
><LI
><P
>Identification (name) of the component</P
></LI
><LI
><P
>Specification of the host filter for packet reception</P
></LI
><LI
><P
>Definition of how the component is connected</P
></LI
><LI
><P
>Custom configuration for the component</P
></LI
></UL
><P
>Of course, for any generalized rule, there's always an exception. 
The <I
CLASS="EMPHASIS"
>log</I
> component
type, as mentioned earlier in this chapter, is defined slightly differently
&mdash;while there is a host filter defined, a component connection
definition is not relevant nor present, and the custom configuration is
limited&mdash;
we'll see this later when we take a tour of the <TT
CLASS="FILENAME"
>jabber.xml</TT
>.</P
><P
>Let's have a closer look at the <I
CLASS="EMPHASIS"
>Client (to Server)
Connections</I
>
(c2s) component and how an instance of it is specified in the 
<TT
CLASS="FILENAME"
>jabber.xml</TT
>. We're going to use the one which
comes delivered in the Jabber 1.4.1 server
distribution tarball. <A
HREF="x1581.htm#JABTDG-CH-4-EX-7"
>Example 4-7</A
>
shows how the c2s is defined. The definition includes details of how
the component code is connected (using the <I
CLASS="EMPHASIS"
>library load</I
>
method), and 
contains some custom configuration covering authentication timeout (the
<TT
CLASS="LITERAL"
>&#60;authtime/&#62;</TT
> tag), traffic flow control
(the <TT
CLASS="LITERAL"
>&#60;karma/&#62;</TT
> section), and what port
c2s is to listen on (the <TT
CLASS="LITERAL"
>&#60;ip/&#62;</TT
> tag).
We'll look at these custom configuration tags in detail later.</P
><DIV
CLASS="EXAMPLE"
><A
NAME="JABTDG-CH-4-EX-7"
></A
><P
><B
>Example 4-7. The <TT
CLASS="LITERAL"
>c2s</TT
> instance configuration in
<TT
CLASS="FILENAME"
>jabber.xml</TT
></B
></P
><P
><PRE
CLASS="SCREEN"
>&#60;service id="c2s"&#62;
  &#60;load&#62;
    &#60;pthsock_client&#62;./pthsock/pthsock_client.so&#60;/pthsock_client&#62;
  &#60;/load&#62;
  &#60;pthcsock xmlns='jabber:config:pth-csock'&#62;
    &#60;authtime/&#62;
    &#60;karma&#62;
      &#60;init&#62;10&#60;/init&#62;
      &#60;max&#62;10&#60;/max&#62;
      &#60;inc&#62;1&#60;/inc&#62;
      &#60;dec&#62;1&#60;/dec&#62;
      &#60;penalty&#62;-6&#60;/penalty&#62;
      &#60;restore&#62;10&#60;/restore&#62;
    &#60;/karma&#62;
    &#60;ip port="5222"/&#62;
  &#60;/pthcsock&#62;
&#60;/service&#62;</PRE
></P
></DIV
><P
>Now let's arrange this instance configuration in diagram form. 
<A
HREF="x1581.htm#JABTDG-CH-4-FIG-4.2"
>Figure 4-3</A
>
highlights the pattern we're expecting to see.</P
><DIV
CLASS="FIGURE"
><A
NAME="JABTDG-CH-4-FIG-4.2"
></A
><P
><B
>Figure 4-3. A diagram of the <TT
CLASS="LITERAL"
>c2s</TT
> instance 
configuration in <TT
CLASS="FILENAME"
>jabber.xml</TT
></B
></P
><PRE
CLASS="SCREEN"
>&#13;    +-----+                                 
    | c2s |                                
    +-----+-------------------------------------------+
    |                                         service |
    |                                                 |
    |--&#62; host                                         |
    |    (none specified)                             |
    |                                                 |
    |--&#62; connect                                      |
    |    load ./pthsock/pthsock_client.so             |
    |                                                 |
    |--&#62; config                                       |
    |     |                                           |
    |     +--&#62; authtime                               |
    |     |                                           |
    |     +--&#62; karma                                  |
    |     |                                           |
    |     +--&#62; ip                                     |
    |                                                 |
    +-------------------------------------------------+&#13;</PRE
></DIV
><P
>If we look at the component instance descriptions in this way, it's easy 
to understand how the configuration is put together, and we can begin to
see the pattern emerging. Taking each of the elements of the pattern in
turn let's examine what the XML tells us.</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="JABTDG-CH-4-SECT-4.2.2.1"
>Component type</A
></H3
><P
>The component type is <I
CLASS="EMPHASIS"
>service</I
>. We know that from 
looking at the outermost tag in the XML:</P
><P
><PRE
CLASS="SCREEN"
>&#60;<TT
CLASS="USERINPUT"
><B
>service</B
></TT
> id="c2s"&#62;
  ...
&#60;/<TT
CLASS="USERINPUT"
><B
>service</B
></TT
>&#62;</PRE
></P
><P
>So we know that this component instance will handle 
<TT
CLASS="LITERAL"
>&#60;message/&#62;</TT
>,
<TT
CLASS="LITERAL"
>&#60;presence/&#62;</TT
>,
<TT
CLASS="LITERAL"
>&#60;iq/&#62;</TT
> and
<TT
CLASS="LITERAL"
>&#60;route/&#62;</TT
> packets.</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="JABTDG-CH-4-SECT-4.2.2.2"
>Identification</A
></H3
><P
>Each component instance must be uniquely identified within the space of
a single Jabber server (configuration). <B
CLASS="COMMAND"
>jabberd</B
> uses
this identification to address the components and deliver packets to the
right place. In this case,
the identification of this component instance is <I
CLASS="EMPHASIS"
>c2s</I
>;
it's taken from the <TT
CLASS="OPTION"
>id</TT
> attribute of the component type tag:</P
><P
><PRE
CLASS="SCREEN"
>&#60;service id="<TT
CLASS="USERINPUT"
><B
>c2s</B
></TT
>"&#62;</PRE
></P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="JABTDG-CH-4-SECT-4.2.2.3"
>Host filter</A
></H3
><P
>The diagram shown in <A
HREF="x1581.htm#JABTDG-CH-4-FIG-4.2"
>Figure 4-3</A
>
states <I
CLASS="EMPHASIS"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费伊人电影| 久久久久久久电影| 亚洲1区2区3区视频| 欧美日韩另类一区| 日韩二区在线观看| 日韩精品一区二区三区蜜臀| 久久狠狠亚洲综合| 日韩欧美亚洲国产另类| 精品一区二区三区久久| 欧美精品一区二区不卡| 高清在线成人网| 国产精品嫩草久久久久| 欧洲生活片亚洲生活在线观看| 亚洲r级在线视频| 欧美白人最猛性xxxxx69交| 国产成人aaa| 亚洲嫩草精品久久| 91精品中文字幕一区二区三区| 美国一区二区三区在线播放| 久久午夜电影网| 99久久精品国产一区二区三区 | 成人动漫精品一区二区| 国产精品国模大尺度视频| 欧美在线free| 精品夜夜嗨av一区二区三区| 国产精品久久久久久亚洲伦 | 欧美撒尿777hd撒尿| 日本午夜一本久久久综合| 久久老女人爱爱| 日本电影欧美片| 久久激情五月激情| 亚洲精品菠萝久久久久久久| 欧美一二三区在线观看| eeuss国产一区二区三区| 亚洲第一狼人社区| 久久亚洲二区三区| 欧美视频在线播放| 国产成人在线影院| 性做久久久久久免费观看欧美| 欧美大片在线观看| 在线看不卡av| 成人免费毛片aaaaa**| 天使萌一区二区三区免费观看| 国产精品沙发午睡系列990531| 欧美日韩www| av网站一区二区三区| 日韩av电影免费观看高清完整版 | 蜜桃精品视频在线观看| 最新中文字幕一区二区三区| 精品美女在线观看| 欧美亚洲动漫另类| 成人午夜视频网站| 麻豆国产精品视频| 亚洲一区二区精品久久av| 欧美成人国产一区二区| 欧美性极品少妇| 99久久99久久精品免费看蜜桃 | 久久午夜老司机| 欧美高清一级片在线| 99热国产精品| 国产成人欧美日韩在线电影| 九一九一国产精品| 日本91福利区| 爽好多水快深点欧美视频| 亚洲欧美色一区| 国产精品美女久久久久高潮| 久久久亚洲国产美女国产盗摄| 欧美精品久久久久久久久老牛影院| 99久久99久久免费精品蜜臀| 成人h动漫精品| 国产成人免费在线视频| 国产乱人伦精品一区二区在线观看| 日韩国产欧美在线播放| 亚洲18女电影在线观看| 亚洲国产欧美日韩另类综合 | 夜夜精品浪潮av一区二区三区| 中文字幕免费不卡| 国产亚洲一区字幕| 国产日韩v精品一区二区| 亚洲精品一区二区三区99 | 久久久久亚洲综合| 精品国产青草久久久久福利| 日韩欧美一区电影| 日韩精品一区二区三区在线| 日韩一区国产二区欧美三区| 日韩欧美黄色影院| www欧美成人18+| 久久久精品免费免费| 国产亚洲精久久久久久| 亚洲国产精品国自产拍av| 欧美韩日一区二区三区四区| 亚洲欧洲三级电影| 亚洲欧洲精品一区二区三区| 1024精品合集| 亚洲一区二区三区免费视频| 香蕉加勒比综合久久| 日韩精品亚洲一区二区三区免费| 免费视频最近日韩| 狠狠网亚洲精品| 成人免费av资源| 色老头久久综合| 51精品国自产在线| 亚洲精品一区二区三区影院| 国产人伦精品一区二区| 亚洲天堂免费在线观看视频| 亚洲一区二区在线观看视频| 日本伊人色综合网| 国产美女精品在线| 99久久精品免费看国产| 欧美四级电影在线观看| 精品免费一区二区三区| 亚洲欧洲日韩在线| 日本成人在线不卡视频| 国产成人亚洲综合色影视| 色综合天天综合| 欧美日韩mp4| 国产精品色婷婷久久58| 天堂av在线一区| 成人免费观看av| 欧美一区二区网站| 中文字幕第一区二区| 日韩主播视频在线| www.欧美日韩| 欧美一区二区人人喊爽| 欧美高清在线精品一区| 亚洲bt欧美bt精品| 成人高清视频在线| 日韩精品一区二区三区蜜臀| 亚洲美女偷拍久久| 黄网站免费久久| 欧美久久一二三四区| 国产精品嫩草影院av蜜臀| 日本网站在线观看一区二区三区| 国产·精品毛片| 日韩免费成人网| 夜夜精品视频一区二区| 懂色av一区二区夜夜嗨| 制服视频三区第一页精品| 综合色中文字幕| 国产一区二区免费在线| 欧美日韩精品一区视频| 综合久久给合久久狠狠狠97色| 激情成人综合网| 欧美一级午夜免费电影| 一区二区免费在线播放| 成人av网站大全| 久久久激情视频| 另类小说一区二区三区| 欧美日韩一级视频| 日韩美女精品在线| 国产高清亚洲一区| 欧美精品色综合| 亚洲亚洲人成综合网络| 色婷婷精品久久二区二区蜜臀av | 亚洲视频精选在线| 国产精品一区二区三区四区| 欧美一三区三区四区免费在线看 | 首页国产欧美日韩丝袜| 在线观看区一区二| 亚洲免费观看高清完整版在线 | 白白色亚洲国产精品| 久久精品网站免费观看| 久久99精品一区二区三区三区| 欧美人牲a欧美精品| 亚洲女性喷水在线观看一区| 99久久精品国产麻豆演员表| 国产精品久久久一本精品 | 亚洲日本一区二区| 成人精品免费视频| 国产精品视频九色porn| 成人黄色av电影| 国产精品国产三级国产专播品爱网| 国产精一区二区三区| 久久这里只精品最新地址| 国产在线不卡一区| 国产亚洲精品超碰| 国产成人精品亚洲午夜麻豆| 国产欧美日韩中文久久| 成人黄色综合网站| 中文字幕制服丝袜一区二区三区 | 麻豆视频观看网址久久| 日韩精品一区二区三区视频| 狠狠色综合日日| 国产精品丝袜91| 色综合久久中文综合久久97| 一区二区欧美国产| 日韩一区二区电影网| 另类小说欧美激情| 亚洲国产电影在线观看| 色哟哟一区二区三区| 午夜不卡av在线| 欧美无砖专区一中文字| 蜜臀av性久久久久蜜臀aⅴ| 久久久精品人体av艺术| 99久久国产综合精品色伊| 亚洲成人黄色影院| 久久先锋影音av| 色婷婷综合中文久久一本| 日韩精品视频网| 国产人妖乱国产精品人妖|