equal
deleted
inserted
replaced
6 // and 3921, plus the various XEPs at http://xmpp.org/protocols/. |
6 // and 3921, plus the various XEPs at http://xmpp.org/protocols/. |
7 package xmpp |
7 package xmpp |
8 |
8 |
9 import ( |
9 import ( |
10 "bytes" |
10 "bytes" |
|
11 "crypto/tls" |
11 "encoding/xml" |
12 "encoding/xml" |
12 "errors" |
13 "errors" |
13 "fmt" |
14 "fmt" |
14 "io" |
15 "io" |
15 "log" |
16 "log" |
40 // If non-nil when NewClient() is called, log messages will be |
41 // If non-nil when NewClient() is called, log messages will be |
41 // sent to this writer. |
42 // sent to this writer. |
42 Log *log.Logger |
43 Log *log.Logger |
43 // Threshold for which messages are logged. |
44 // Threshold for which messages are logged. |
44 Loglevel syslog.Priority = syslog.LOG_NOTICE |
45 Loglevel syslog.Priority = syslog.LOG_NOTICE |
|
46 // Use this Config to negotiate TLS connections. |
|
47 TLSConfig *tls.Config = nil |
45 ) |
48 ) |
46 |
49 |
47 // This channel may be used as a convenient way to generate a unique |
50 // This channel may be used as a convenient way to generate a unique |
48 // id for an iq, message, or presence stanza. |
51 // id for an iq, message, or presence stanza. |
49 var Id <-chan string |
52 var Id <-chan string |