-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsj.1
100 lines (100 loc) · 1.97 KB
/
sj.1
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.Dd November 20, 2015
.Dt SJ 1
.Os
.Sh NAME
.Nm sj
.Nd XMPP client daemon
.Sh SYNOPSIS
tcpclient host port [tlsc] \\
.Nm
.Op Fl d Ar dir
.Op Fl r Ar resource
.Op Fl s Ar server
.Op Fl u Ar user
.Op Fl D
.Sh DESCRIPTION
The
.Nm
daemon is a client for the XMPP (Jabber) chat protocol. It handles the
protocol initiation, authentication and keep-alive pings. During the
STARTTLS part of the initiation,
.Nm
automatically starts
.Xr tlsc 1
with its own arguments.
After an XMPP session is established
.Nm
starts
.Xr messaged 1 ,
.Xr presenced 1
and
.Xr iqd 1
and delegates all corresponding stanzas to these daemons via a
.Xr pipe 2 .
.Nm
exits if one of these pipes is widowed.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl d Ar dir
Path to sj directory stucture; defaults to current working directory.
.It Fl r Ar resource
Resource for this XMPP session.
.It Fl s Ar server
XMPP server domain name.
.It Fl u Ar user
XMPP username.
.It Fl D
prints all sent and received XML messages to stderr.
.El
.Sh ENVIRONMENT
Command line options, when provided, override the environment variables.
.Bl -tag -width SJ_PASSWORD
.It Ev SJ_DIR
See option
.Fl d Ar dir
.It Ev SJ_RESOURCE
See option
.Fl r Ar resource
.It Ev SJ_SERVER
See option
.Fl s Ar server
.It Ev SJ_USER
See option
.Fl u Ar user
.El
.Sh EXAMPLES
For a Jabber ID of user@example.org:
.Bl -tag -width Ds
.It tcpclient example.org 5222 sj -u user -s example.org
This is the recommended way to connect to the default (unencrypted) port and
start
.Xr tlsc 1
implicitly through
.Nm
itself after the STARTTLS handshake.
.It tcpclient example.org 5223 tlsc sj -u user -s example.org
Using the encrypted port and explicity calling
.Xr tlsc .
This way
.Nm
does not do the STARTTLS handshake itself.
.El
.Sh SEE ALSO
.Xr ii 1 ,
.Xr iqd 1 ,
.Xr messaged 1 ,
.Xr presenced 1 ,
.Xr socks 1 ,
.Xr tlsc 1
.Sh STANDARDS
XMPP CORE
.%R RFC 6120 ,
XMPP IM
.%R RFC 6121 ,
.%R XEP-0199 XMPP Ping
.Sh AUTHORS
.An -nosplit
The
.Nm
program was written by
.An Jan Klemkow Aq Mt j.klemkow@wemelug.de .