diff options
author | xengineering <me@xengineering.eu> | 2023-06-03 21:33:33 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-04 16:40:46 +0200 |
commit | 3c33d393ddf06b6552b6dd7fbe85ddb985233968 (patch) | |
tree | 0ac87cada8c7a992da82d4d78ac6428afab25db0 /xmpp/session.go | |
parent | 3d2bd84e683e414fc6c8ac2634165fccba641b72 (diff) | |
download | limox-3c33d393ddf06b6552b6dd7fbe85ddb985233968.tar limox-3c33d393ddf06b6552b6dd7fbe85ddb985233968.tar.zst limox-3c33d393ddf06b6552b6dd7fbe85ddb985233968.zip |
Implement dummy XML encoder and decoder
Diffstat (limited to 'xmpp/session.go')
-rw-r--r-- | xmpp/session.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmpp/session.go b/xmpp/session.go index d8e4973..71b3acf 100644 --- a/xmpp/session.go +++ b/xmpp/session.go @@ -11,17 +11,20 @@ type SessionDisconnect struct{} type SessionShouldDisconnect struct{} type session struct { - in, out chan any jid string + in, out chan any transport *tls.Conn + ed encoderDecoder } func StartSession(out chan any, jid string, pwd string) chan any { s := session{} + s.jid = jid s.in = make(chan any) s.out = out - s.jid = jid + + s.ed = newEncoderDecoder(&s) go s.run() |