Editing XMPP Core

From JaWiki (Jabber/XMPP wiki)
Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: MediaWiki upgrading

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{stub}}
+
Commentary and photos submitted to the Missoulian (Missoulian.com) may be published or distributed in print, electronically or other forms. Opinions expressed in Missoulian.com's comments reflect the opinions of the author, and are not necessarily the opinions of the Missoulian or its parent company. See the  and  for more information. <a href=http://www.okazo.fr/>tn pas cher</a> If there was one thing he had learnt during his time as Liberal leader, Turnbull remarked during his contribution, it was the importance of keeping the team together. i <a href=http://www.pourmetz.fr/>www.pourmetz.fr</a>
{{RealTitle|Основы XMPP}}
+
"Most of them are Lions players, so they're world class. They're big boys and they use that strength very well," he said. <a href=http://www.dj-animateur-manche.fr/>nike pas cher</a> Q.Why add a second staircase?
 
+
鈥淚 didn鈥檛 have any expectations that we would be literally within feet of the brown bears and I would be able to get full-frame photos of their heads,鈥?he said. <a href=http://www.joffreyfaroux.fr/>nike tn pas cher</a> Mary Louise Schumacher is the Journal Sentinel's art and architecture critic. You can follow her on  and . Email her at . f <a href=http://www.musicales-boffres.fr/>nike tn pas cher</a>
Основы протокола [[XMPP]] изложены в документе RFC 3920: "Extensible Messaging and Presence Protocol (XMPP): Core".
+
"The defendant repeatedly punched her in the face, he is a boxer and is well known for that. <a href=http://www.musicales-boffres.fr/>nike tn pas cher france</a> Play was physical during the match, especially in the second half when the referee handed out three yellow cards.  
 
+
x Stroke is a leading cause of long-term disability and the fifth leading cause of death in the United States, killing nearly 130,000 Americans each year, according to the stroke experts at Mount Sinai. <a href=http://www.pourmetz.fr/>nike air max pas cher</a> Mike Penrose, executive director for Action Contre la Faim (ACF), who also attended the Europe meeting, said NGOs worried how the meaningful debate would be distilled and about the premature application of a political filter . <a href=http://www.ghg-composants.fr/>louboutin homme pas cher</a>
Этот документ описывает обощённую архитектуру, схему адресации, термины "XML поток" и "XML [[станс]]", правила использования [[XML]], требования к совместимым реализациям протокола, а также соображения по поводу интернациональности и безопасности.
+
Armstrong finished 2013 having just established himself in Newcastle鈥檚 development team. Twelve months on, and he was making his first Premier League start, underlining both his own rapid development and the lack of attacking options within a Magpies squad that surely needs at least one new forward next month. <a href=http://www.mileas.fr/>louboutin soldes</a> Now it appears small batch brewing, drinking beer, eating and letting the good times roll is becoming the main thing developing downtown. All fun and no work also make a pretty dull town after a while, especially if it's for only, maybe, half the year. http://www.moncleroutlet.nom.co
 
+
It relies on oil and natural gas revenues for more than half of its GDP, but that is not nearly as much as some other OPEC members. Even so, it is working towards diversification, an urgent need emphasised by the recent downfall in global oil prices, which have fallen more than 60 percent since June to less than $50 per barrel. <a href=http://www.magelule.fr/>louboutin pas cher</a> BEST OF THE BUNCH - Saxifrage t <a href=http://www.le-bk.fr/>nike air max pas cher</a>  
== Введение ==
+
All profits from the event were donated to the Mountain Rescue Service. Next year's race will take place on Saturday 9 July 2016. More information on the race, including the results, can be found at the Quakers Running Club website - www.quakersrunningclub.org.uk/lyke-wake-walk-2015/ <a href=http://www.joffreyfaroux.fr/>nike tn pas cher</a> The hospital source and the vigilante, Abbagana Saleh, both are based in the town of Biu, about 50 kilometers (32 miles) from the blast scene. Victims from the explosion were taken to Biu General Hospital.
Extensible Messaging and Presence Protocol (XMPP) &mdash; открытый, основанный на XML протокол для обмена в почти реальном времени сообщениями, передачи информации о пристуствии и сервисов вида "запрос-ответ".  
+
Congressman Keith Rothfus (R-Pennsylvania), who is on his first visit to Israel, said he would share with his colleagues and constituency what he learned on the trip about the need for America to stand with Israel in her defense, the 'Post reported. <a href=http://www.le-bk.fr/>nike air max pas cher</a> The third umpire is best equipped to deal with balls that hit the post 89 per cent of reviews are conclusive and balls touched off the boot (86 per cent conclusive).
Базовый синтаксис и семантика были разработаны в сообществе Jabber, большей частью в 1999 году.  
+
He makes my job a lot easier because teams have to respect what he is doing in the air, Ball said. How he delivers the ball to the receivers, the precision that he has. Teams have to respect that. <a href=http://www.musicales-boffres.fr/>nike tn pas cher france</a> Rereading this story offered many joys of rediscovery. I saw again Joyce's mastery of detail, of the telling gesture, of the skewering glance, of the sharp word spat out in an unguarded moment.  
В 2002, рабочая группа XMPP занялась разработкой адаптации протокола Jabber, которая была бы пригодна в качестве технологии IETF для обмена сообщениями и информацией о присутствии.
+
Wipfli LLP, a leading CPA and consulting firm, recently became the first U.S. partner to provide business process outsourcing (BPO) powered by Microsoft in the United States. <a href=http://www.dj-animateur-manche.fr/>nike pas cher</a> By News Staff  Dozens of people were locked up Wednesday at Legal Seafood in Warwick. Community leaders and business owners surrendered to the MDA police to be locked up for charity. Money paid to bail them out went right to the Muscular Dystrophy Association. Attorney Rob Levine was just one of the people in custody. 鈥淚 think that most of the pp that we do business with and most of the pp that we are friends with share the same kind of commitment that I have to the community helping and giving back. So when I ask for help they are willing to help,鈥?said Levine. We're told the MDA hit its goal of raising $10,000. That money will help send kids to MDA summer camp.
Как результат этой работы, данный текст описывает основные возможности XMPP 1.0; расширения, необходимые для обмена сообщениями и информацией о присутствии, определенные в RFC 2779, определены в Extensible Messaging and Presence Protocol
+
z The Australian,who boasts 11 ODI caps for his country, also picked up the Most Valuable Player Award during the recent Big Bash competition. <a href=http://www.mileas.fr/>chaussure louboutin</a> This week, Americans across the country will commemorate the 50th anniversary of the Voting Rights Act, a landmark piece of legislation that greatly expanded access to the ballot box for millions of Americans. Because of the efforts of dedicated citizens 鈥?people such as U.S. Rep. John Lewis and Wisconsin's own Jim Zwerg, both of whom bear the physical scars of the fight for justice 鈥?Congress acted and President Lyndon B. Johnson signed into law the bill. For five decades, this measure helped to ensure that our country guaranteed the rights stated in our founding documents to all of its citizens.
(XMPP): [[Instant Messaging and Presence|XMPP IM]].
+
SET PIECE TRICKERY <a href=http://www.magelule.fr/>louboutin pas cher</a> For the Americans, the reaction was a bit different. t <a href=http://www.ghg-composants.fr/>http://www.ghg-composants.fr</a>  
 
+
鈥淲orking in the construction industry, for example, I often found that I was the only woman around the table. <a href=http://www.musicales-boffres.fr/>tn pas cher</a> Broadcasts: TBS, AM-1130
== Обобщённая архитектура сети ==
+
n University of Akron pole vaulter Shawn Barber has been named the Great Lakes Regional Field Athlete of the Year by the United States Track and Field and Cross Country Coaches Association. <a href=http://www.musicales-boffres.fr/>www.musicales-boffres.fr</a> Saeed is anything but political. He really truly was there building an orphanage and doing humanitarian work, Barrans added. t
 
+
8 Magnay: Midfielder holding role is a new one, but he looked at home. Used the ball well, broke up attacks and kept it simple <a href=http://www.leslascarsgays.fr/>chaussure louboutin pas cher</a> Thecouple&mdash identified by as Fail Galyamov andIrina Kildiyarova&mdash was relaxing onthe riverbank next toa group offive people, including apolice interrogator fromthe Chelyabinsk region city ofKatav-Ivanovsk, . <a href=http://www.ghg-composants.fr/>louboutin homme pas cher</a>  
=== Обзор ===
+
Wind energy's contribution to the NEM hit a record 14.4 per cent of supply on July 25. Its monthly share, though, is likely to change little from the current 5.4 per cent of the market given the recent turmoil in the renewable energy industry ahead of the recent cut in the 2020 target, which stymied new investment. <a href=http://www.musicales-boffres.fr/>tn pas cher</a> Tigers FC arein the box seat for the league championship, but they know they can't afford a slip-up against the FFA COE on Thursday night. g <a href=http://www.pourmetz.fr/>chaussure air max pas cher</a>  
Хотя XMPP и не привязан к конкретной сетевой архитектуре, обычно он реализуется с архитектурой "клиент-сервер", где клиент соединяется с сервером по протоколу TCP, и соединения между серверами тоже производятся по протоколу TCP.
+
鈥淚n all those years there was never a drop of trouble or unpleasantness. Peter would always take command with a well-timed quiet word. The atmosphere was always excellent 鈥?a massive contribution to the 鈥榥eeds鈥?of the football followers of Darlington.鈥?<a href=http://www.musicales-boffres.fr/>www.musicales-boffres.fr</a> A lot of classic cocktails need a little tweaking for the modern palate, as we as a whole don't taste things nearly the same as we did in the early 20th century, he said.  
 
+
You may not post copyrighted material from another publication. (Link to it instead, using a headline or very brief excerpt.) <a href=http://www.okazo.fr/>chaussure nike tn pas cher</a> The government is saying that they want to stabilise prices but the manner in which the permits are being issued has an inflationary effect, she said. j <a href=http://www.dj-animateur-manche.fr/>nike pas cher</a>
[[Image:Xmpp_core_network.PNG|Примерная структура сети]]
+
However, it hasn鈥檛 always been the case. <a href=http://www.ghg-composants.fr/>escarpins louboutin</a> , Journal Sentinel Inc. All rights reserved.
 
+
Примерная структура сети XMPP включает в себя [[Сервер|сервера]], к которым подключаются [[Клиент|клиенты]]. На схеме также показан транспорт в другую [[IM]] сеть. Синим цветом выделены соединения XMPP, черным - соединения сторонней сети.
+
 
+
=== Сервер ===
+
[[Сервер]] действует как уровень абстракции для соединений XMPP. Его основные обязанности:
+
* управлять соединениями(сессиями) других [[Сущность|сущностей]], в форме XML потоков от/для авторизованных клиентов, других серверов и прочих сущностей.
+
* маршрутизировать корректно адресованные XML [[Станс|стансы]] между указанными сущностями посредством XML потоков.
+
 
+
Большинство XMPP-совместимых серверов также выполняют обязанности по хранению данных клиентов (например, их [[Ростер|контакт-листов]] в случае базирующихся на XMPP [[IM]]-приложений). В этом случае данные XML обрабатываются самим сервером, и никуда не перенаправляются.
+
 
+
=== Клиент ===
+
Большинство клиентов подключаются напрямую к серверам через {{w|TCP}}-соединения, и используют XMPP для получения доступа к возможностям [[Сервер|сервера]] и связанных с ним [[Сервис|сервисов]]. Одновременно могут быть подключены несколько [[Ресурс|ресурсов]] (например, обозначающих устройства или местоположения) одного клиента. Каждый ресурс должен иметь уникальный идентификатор ресурса (см. [[XMPP Core#Схема адресации|Схема адресации]]).
+
 
+
Рекомендуется для [[C2S|клиент-серверных соединений]] использовать порт 5222.
+
 
+
=== Транспорт ===
+
Транспорт - специальный сервис, работающий на стороне сервера, чья основная функция - обеспечивать перевод [[XMPP]] в протокол сторонней (не XMPP) [[IM]] сети и обратно. Примерами могут являться [[Gateway:SMTP|e-mail]], [[Gateway:IRC|Internet Relay Chat]], [[SIMPLE]], [[Gateway:SMS|SMS]], а также коммерческие IM-сети, такие как [[Gateway:AIM|AIM]], [[Gateway:ICQ|ICQ]], [[Gateway:MSN|MSN]] и [[Gateway:Yahoo|Yahoo! IM]]. Коммуникации между транспортами и XMPP-серверами, а также между транспортами и сторонними серверами не описываются в этом документе.
+
 
+
=== Сеть ===
+
Поскольку каждый сервер идентифицируется его сетевым адресом, и поскольку [[S2S|сервер-серверные коммуникации]] являются прямым расширением [[C2S|клиент-серверного протокола]], фактически система состоит из набора взаимодействующих серверов. Таким образом, &lt;juliet@example.com&gt; может обмениваться сообщениями, информацией о присутствии и др. с &lt;romeo@example.net&gt;. Этот шаблон знаком по протоколам вроде {{w|SMTP}}, которые пользуются стандартами сетевой адресации. Взаимодействие между серверами НЕОБЯЗАТЕЛЬНО. Если оно доступно, оно должно производиться посредством XML потоков через TCP соединения. Рекомендуемый порт для межсерверного взаимодействия 5269.
+
 
+
== Схема адресации ==
+
 
+
=== Обзор ===
+
Сущность - что-то, что может быть воспринято как конечная точка сети и может обмениваться данными по протоколу XMPP.
+
Все сущности имеют уникальный адрес, соотвествующий RFC 2396. По историческим причинам, идентификатор называется Jabber Identifier или [[JID]].
+
Корректный JID состоит из идентификатора домена (domain), идентификатора узла(node) и идентификатора ресурса(resource).
+
 
+
Синтакс JID в [[w:Форма Бэкуса — Наура|форме Бэкуса—Наура]]:
+
 
+
      jid            = [ node "@" ] domain [ "/" resource ]
+
      domain          = fqdn / address-literal
+
      fqdn            = (sub-domain 1*("." sub-domain))
+
      sub-domain      = (internationalized domain label)
+
      address-literal = IPv4address / IPv6address
+
 
+
Все JID'ы строятся по указанной схеме.  
+
Наиболее частое её применение - идентификация пользователя IM, сервера, к которому пользователь подключен, и ресурса пользователя в форме <tt>user@server/resource</tt>.
+
 
+
Тем не менее, могут существовать узлы, не являющиеся пользователями. Например, конкретная конференция на [[MUC|сервере конференций]] может быть адресована как <tt>room@server</tt>, а её участник может быть адресован как <tt>room@server/nick</tt>.
+
 
+
Каждая допустимая часть JID'а по длине не должна превышать 1023 байта. Таким образом, полная длина JID с учетом символов "@" и "/" не может превышать 3071 байт.
+
 
+
== XML-потоки ==
+
 
+
=== Обзор ===
+
Две фундаментальные концепции делают возможным быстрый асинхронный обмен сравнительно маленькими порциями структурированной информации между сущностями: [[XML-поток|XML-потоки]] и [[Станс|XML-стансы]].
+
Эти термины определяются следующим образом:
+
 
+
'''XML-поток''' - это контейнер для обмена XML-элементами между любыми двумя сущностями в сети.
+
Начало XML-потока однозначно обозначается открывающим XML-тегом <tt>&lt;stream&gt;</tt> (с необходимыми атрибутами и указанием пространства имён), а конец XML-потока однозначно обозначается закрывающим тегом <tt>&lt;/stream&gt;</tt>.
+
В течение жизни потока сущность, создавшая поток, может посылать неограниченное количество XML-элементов через поток, включая как элементы для создания потока (например, предложить использовать [[TLS]] (Секция 5) или [[SASL]] (Секция 6)), так и [[Станс|XML-стансы]] (элементы <tt>&lt;message/&gt;</tt>, <tt>&lt;presence/&gt;</tt> и <tt>&lt;iq/&gt;</tt>, с пространством имён по умолчанию).
+
"Начальный поток" предлагается инициирующей сущностью (обычно клиентом или сервером) принимающей сущности (обычно серверу), и может рассматриваться как соответствующая инициатору потока "сессия".
+
"Начальный поток" позволяет производить односторонюю передачу информации от инициатора к получателю; для передачи в обратном направлении принимающая сущность ДОЛЖНА предложить поток инициатору ("ответный поток").
+
 
+
'''XML-станс''' - дискретная семантическая единица структурированной информации, переcылаемая от одной сущности к другой посредством XML-потока.
+
XML-станс существует как непосредственный потомок корневого элемента <tt>&lt;stream/&gt;</tt>.
+
{{todo|An XML stanza exists at the direct child level of the root <stream/> element and is said to be well-balanced if it matches the production [http://tools.ietf.org/html/rfc3920#ref-43 43] content of [http://tools.ietf.org/html/rfc3920#ref-XML XML].}}
+
Начало любого XML-станса однозначно обозначается открывающим тегом на глубине 1 в XML-потоке (например, <tt>&lt;presence&gt;</tt>), и конец однозначно обозначается соответствующим закрывающим тегом на глубине 1 (например, <tt>&lt;/presence&gt;</tt>).
+
XML-станс МОЖЕТ содержать дочерние элементы (с соответствующими атрибутами, дочерними элементами и символьными данными), если это необходимо для передачи желаемой информации.
+
Единственные XML-стансы, определенные здесь - элементы <tt>&lt;message/&gt;</tt>, <tt>&lt;presence/&gt;</tt> и <tt>&lt;iq/&gt;</tt>, с пространством имён по умолчанию, как описано в Секции 9; XML элементы, необходимые для инициации [[TLS]] (Секция 5), [[SASL]] (Секция 6), или Server Dialback (Секция 8) не являются XML-стансами.
+
 
+
В качестве примера рассмотрим сессию клиента с сервером.
+
Для подключения к серверу клиент ДОЛЖЕН инициировать XML-поток, послав серверу открывающий тег <tt>&lt;stream&gt;</tt>, возможно, предварив его текстовым описанием версии XML и используемой кодировки (см. Изменения в текстовом описании (Секция 11.4) и Кодировка символов (Секция 11.5)).
+
В зависимости от локальных правил и характеристик сервиса, серверу СЛЕДУЕТ ответить клиенту вторым XML-потоком, возможно, предварив его текстовым описанием.
+
Как только клиент завершил приветствие SASL, он МОЖЕТ посылать неограниченное число XML-станс через поток любому получателю в сети.
+
Когда клиент хочет закрыть поток, он просто посылает закрывающий тег <tt>&lt;/stream&gt;</tt> (в другом варианте, поток может быть закрыть сервером), после чего клиенту и серверу СЛЕДУЕТ также прервать нижележащее соединение (обычно TCP).
+
Те, кто привык думать об XML как о документе, могут рассматривать сессию клиента с сервером как два незакрытых XML документа: один от клиента к серверу, и один от сервера к клиенту.
+
С этой точки зрения, корневой элемент <tt>&lt;stream/&gt;</tt>, может рассматриваться как основная сущность для обоих "документов", и оба этих "документа" строятся за счет аккумулирования XML-станс, присланных по соответствующему потоку.
+
Тем не менее, такая точка зрения - не более чем соглашение; XMPP имеет дело не с документами, а с потоками и стансами.
+
 
+
В сущности, XML-поток действует как конверт для всех переданных XML-станс. Упрощенно его можно представить так:
+
<pre>
+
  |--------------------|
+
  | <stream>          |
+
  |--------------------|
+
  | <presence>        |
+
  |  <show/>         |
+
  | </presence>       |
+
  |--------------------|
+
  | <message to='foo'> |
+
  |  <body/>         |
+
  | </message>         |
+
  |--------------------|
+
  | <iq to='bar'>      |
+
  |  <query/>         |
+
  | </iq>             |
+
  |--------------------|
+
  | ...               |
+
  |--------------------|
+
  | </stream>         |
+
  |--------------------|
+
</pre>
+
 
+
=== Привязка к TCP ===
+
 
+
Хотя нет необходимости передавать XML поток  через [TCP] соединение (например, две сущности могут подключаться друг к другу через другой механизм такой как [HTTP] туннелирование), данная спецификация определяет привязку XMPP только к TCP. В контексте клиент-серверного взаимодействия, сервер ДОЛЖЕН разрешать клиенту использование одного TCP соединения для отправки XML стансов от клиента к серверу и от сервера к клиенту. При взаимодействии сервер-сервер сервер ДОЛЖЕН использовать одно TCP соединение для стансов, посылаемых сервером пиру и другое TCP соединение (инициированное пиром) для стансов от пира к серверу, всего два TCP соединения.
+
 
+
=== Безопасность потока ===
+
 
+
=== Атрибуты потока ===
+
 
+
==== Поддержка версий ====
+
 
+
=== Указание пространства имён ===
+
 
+
=== Возможности потока ===
+
 
+
=== Ошибки потока ===
+
 
+
==== Правила ====
+
 
+
==== Синтаксис ====
+
 
+
==== Предпоределенные условия ====
+
 
+
==== Специфические условия приложения ====
+
 
+
=== Упрощенные примеры потоков ===
+
 
+
== Использование TLS ==
+
 
+
== Использование SASL ==
+
 
+
== Назначение ресурса ==
+
 
+
== Server Dialback ==
+
 
+
== XML стансы ==
+
 
+
== Правила обработки XML стансов на сервере ==
+
 
+
== Использование XML в протоколе XMPP ==
+
 
+
== Требования к совместимости с Основами ==
+
 
+
== Соображения по поводу интернациональности ==
+
 
+
== Соображения по поводу безопасности ==
+
 
+
== Соображения {{w|IANA}} ==
+
 
+
== Примечания ==
+
 
+
== Различия между Основами [[Jabber]] и [[XMPP]] ==
+
 
+
== Ссылки ==
+
 
+
* [http://book.itep.ru/4/45/xmpp.htm Частичный перевод на русский]
+
* [http://tools.ietf.org/html/rfc3920 RFC 3920 на сайте ietf.org] (англ.)
+

Please note that all contributions to JaWiki (Jabber/XMPP wiki) may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see JaWiki (Jabber/XMPP wiki):Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Retrieved from "http://jawiki.ru/XMPP_Core"