-
Notifications
You must be signed in to change notification settings - Fork 18
/
HACKING
35 lines (26 loc) · 853 Bytes
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
= Accounts =
Accounts keep the basic user information:
- JID
- Password
- connection string
= Connection Strings =
AsmackService uses connection strings that borrow ideas from database
connection strings.
Currently supported schemas:
- tcp:ipv4
- tcp:ipv4:port
- tcp:[ipv6]
- tcp:[ipv6]:port
- tcp:domain
- tcp:domain:port
- xmpp:domain
where xmpp performs a DNS/SRV lookup.
= Core stanza receiving =
All connections are currently ending with a XmppInputStream.
A PullToPush thread calls nextStanza (which is delegated to XMLUtils) to get a
single XML fragment.
This fragment is then broadcasted by the XMPP transport service.
= Core stanza sending =
XMPPTransportService looks for the correct connection and calls send on the
connection instance. The connection instance checks the xml structure and sends
a raw text block after verification.