Software /
code /
prosody
Annotate
spec/scansion/version.scs @ 11793:9006ff4838ff
net.server_epoll: Try to make port number related methods sane
Previously it was unclear whether "client port" was the port that the
client connected to, or from. I hereby declare that the client port is
the source port and the server port is the destination port.
Incoming and outgoing connections can be distinguished by looking at
the_server reference, which only incoming connections have.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Sep 2021 15:47:06 +0200 |
parent | 10729:dbce2b94a7eb |
rev | line source |
---|---|
10729 | 1 # XEP-0092: Software Version / mod_version |
2 | |
3 [Client] Romeo | |
4 password: password | |
5 jid: romeo@localhost/dfaZpuxV | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 Romeo sends: | |
12 <iq id='lx2' to='localhost' type='get'> | |
13 <query xmlns='jabber:iq:version'/> | |
14 </iq> | |
15 | |
16 # Version string would vary so we can't do an exact match atm | |
17 # Inclusion of <os/> is disabled in the config, it should be absent | |
18 Romeo receives: | |
19 <iq id='lx2' from='localhost' type='result'> | |
20 <query xmlns='jabber:iq:version' scansion:strict='true'> | |
21 <name>Prosody</name> | |
22 <version scansion:strict='false'/> | |
23 </query> | |
24 </iq> | |
25 | |
26 | |
27 Romeo disconnects |