Editing XEP-0065: SOCKS5 Bytestreams

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 121: Line 121:
 
# Инициатор и Цель могут начать пересылку данных.
 
# Инициатор и Цель могут начать пересылку данных.
  
=== Опосредованное соединение ===
+
=== Mediated Connection ===
  
Опосредованное соединение немного сложнее. В этом случае ВедущимУзлом является не Инициатор, а Посредник; это означает, что Инициатор должен узнать сетевой адрес ВедущегоУзла перед посылкой начального [[iq|запроса IQ-set]], должен согласовать соединение с ВедущимУзлом таким же образом, как и Цель, и должен запросить, чтобы ВедущийУзел активировал канал передачи прежде, чем он может быть использован. Процесс установки каналов передачи таков:
+
Mediated connection is slightly more complicated. In this situation, the StreamHost is not the Initiator but a Proxy, which means that the Initiator must discover the network address of the StreamHost before sending the initial IQ-set, must negotiate a connection with the StreamHost in the same way that the Target does, and must request that the StreamHost activate the bytestream before it can be used. The process for establishing bytestreams in this case is as follows:
  
# (Необязательный пункт) Инициатор узнаёт сетевой адрес ВедущегоУзла [[in-band|внутри канала XMPP]].
+
Optionally, Initiator discovers the network address of StreamHost in-band.
# Инициатор посылает Цели запрос IQ-set с указанием [[JID|полного JID]] и сетевого адреса ВедущегоУзла, а также <span id="SID_definition">ИдПередачи (StreamID, SID)</span> предлагаемого канала передачи.
+
 
# Цель открывает соединение [[w:TCP|TCP]] с выбранным ВедущимУзлом.
+
Initiator sends IQ-set to Target specifying the full JID and network address of StreamHost as well as the StreamID (SID) of the proposed bytestream.
# Цель устанавливает соединение по SOCKS5 со значениями адреса приёмника (DST.ADDR) и порта приёмника (DST.PORT), определёнными ниже.
+
 
# ВедущийУзел посылает подтверждение успешного соединения с Целью по SOCKS5.
+
Target opens a TCP socket to the selected StreamHost.
# Цель посылает Инициатору [[iq|результат IQ-result]], используя идентификатор (параметр 'id') исходного запроса IQ-set.
+
 
# Инициатор открывает соединение TCP с ВедущимУзлом.
+
Target establishes connection via SOCKS5, with the DST.ADDR and DST.PORT parameters set to the values defined below.
# Инициатор устанавливает соединение по SOCKS5 со значениями адреса приёмника (DST.ADDR) и порта приёмника (DST.PORT), определёнными ниже.
+
 
# ВедущийУзел посылает подтверждение успешного соединения с Инициатором по SOCKS5.
+
StreamHost sends acknowledgement of successful connection to Target via SOCKS5.
# Инициатор посылает IQ-set ВедущемуУзлу с запросом активации ВедущимуУзлом канала передачи, связанного с ИдПередачи.
+
 
# ВедущийУзел активирует канал передачи. (Данные теперь перенаправляются посредником [прокси] из одного соединения SOCKS5 в другое.)
+
Target sends IQ-result to Initiator, preserving the 'id' of the initial IQ-set.
# ВедущийУзел посылает результат IQ-result Инициатору, подтверждающий, что канал передачи активирован (или сообщающий об ошибке).
+
 
# Инициатор и Цель могут начинать использовать канал передачи.
+
Initiator opens a TCP socket at the StreamHost.
 +
 
 +
Initiator establishes connection via SOCKS5, with the DST.ADDR and DST.PORT parameters set to the values defined below.
 +
 
 +
StreamHost sends acknowledgement of successful connection to Initiator via SOCKS5.
 +
 
 +
Initiator sends IQ-set to StreamHost requesting that StreamHost activate the bytestream associated with the StreamID.
 +
 
 +
StreamHost activates the bytestream. (Data is now relayed between the two SOCKS5 connections by the proxy.)
 +
 
 +
StreamHost sends IQ-result to Initiator acknowledging that the bytestream has been activated (or specifying an error).
 +
 
 +
Initiator and Target may begin using the bytestream.
  
 
== Протокол ==
 
== Протокол ==

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)