summaryrefslogtreecommitdiff
path: root/xmpp
AgeCommit message (Collapse)Author
2023-06-30Send SASL request based on new routingxengineering
2023-06-30Add session pointer to routing infrastructurexengineering
It is nearly useless to route a XML element to an appropriate handler function if the latter has no idea how to send responses to the server or the GUI. Passing a pointer to the session solves this issue.
2023-06-30Fix debug messagexengineering
2023-06-30Move SASL mechanism detection to xmpp/sasl.goxengineering
2023-06-30Add detection for SASL mechanismxengineering
This is needed to respond with a SASL auth attempt.
2023-06-30Add dummy handler for stream features elementsxengineering
This is the first step to handle stream features correctly with the new routing infrastructure.
2023-06-30Add unit test for routing functionxengineering
2023-06-30Add xmpp/router.goxengineering
This implements a routing function for XML elements received by an XML stream.
2023-06-29Add FIXME to element buffer specificationxengineering
The behaviour is ok for now but should be improved in the future to make it more robust.
2023-06-29Document element buffer test point structxengineering
This makes it easier to add further test data in case there are further corner cases which should be tested in the future.
2023-06-29Minor improvements to element buffer testxengineering
2023-06-29xmpp: Add indent level test for elementBufferxengineering
This tests if the indent level is correctly detected. This basic test can be extended to support invalid XML elements which should be refused to add to the element buffer.
2023-06-28xmpp: Implement basic elementBufferxengineering
This is needed to buffer XML elements of a stream until they are complete and can be given to an element handler.
2023-06-28Apply go fmtxengineering
2023-06-28xmpp: Implement syncStreams()xengineering
This should ensure that the incoming and outgoing XML streams are in sync.
2023-06-28xmpp: Move Stream logic to stream_pair.goxengineering
The new source file should contain the complete stream logic.
2023-06-28Temporarily drop SASL authxengineering
This prepares the switch to stream pairs.
2023-06-27xmpp: Re-introduce SASL authenticationxengineering
2023-06-27xmpp: StartSession(): Switch to directed chanxengineering
This reduces the risk of using those channels wrong.
2023-06-27xmpp: Add name to return value of StartSessionxengineering
This explains implicitly why the value is returned.
2023-06-27Apply go fmtxengineering
2023-06-27xmpp: Remove unused codexengineering
This is part of the refactoring. Details of the old implementation should be looked up by older commits.
2023-06-16Add chan xml.Token xmpp.session.rxxengineering
This allows the goroutine which fetches all tokens from the server to forward them to the main goroutine of the session.
2023-06-05Re-implement XML decodingxengineering
2023-06-05Re-implement initial stream start/endxengineering
2023-06-05Re-implement XML encodingxengineering
2023-06-04Implement dummy XML encoder and decoderxengineering
2023-06-03Re-implement transport setup in sessionxengineering
2023-06-03Introduce new communication patternxengineering
2023-06-03Implement dummy sessionxengineering
Minimal step towards session-based XMPP architecture.
2023-05-25Add unit test for xmpp.username() and fix itxengineering
The second unit test detected a bug - they are worth the effort!
2023-05-25Implement first unit test and integrate into buildxengineering
2023-05-22Rename xmpp/xmpp.go -> xmpp/conn.goxengineering
2023-05-22Stop decoding on decoding errorsxengineering
This avoids an endless loop.
2023-05-22Act on SASL server responsexengineering
2023-05-22Introduce new xmpp/sasl.goxengineering
2023-05-22Move stream logic to new xmpp/stream.goxengineering
2023-05-21Implement SASL PLAIN authenticationxengineering
2023-05-21Include TCP connection in xmpp.Connxengineering
2023-05-21Introduce xengineering.eu/xmpp.Connxengineering
2023-05-21Implement SASL method parsingxengineering
2023-05-21Allow error propagation from XML element handlersxengineering
2023-05-21Implement XML element routingxengineering
2023-05-21Fix token routingxengineering
2023-05-21Implement xengineering.eu/xmpp.tokenRouterxengineering
This will collect XML tokens until a full XML element is received and can be routed by a to-implement elementRouter.
2023-05-20Copy received tokensxengineering
The bytes the token refers to are just valid until a new token arrives. See the documentation of the encoding/xml package for details.
2023-05-19Implement basic stream error detectionxengineering
With this commit LimoX will cancel the connection to the server if it receives an encoding/xml.EndElement with .Name.Local attribute set to "error".
2023-05-18Handle server side debug in xmpp/decoder.goxengineering
2023-05-18Add xmpp/encoder.goxengineering
This simplifies the double-encoding to the TCP connection and the debug console.
2023-05-18Use only xmpp.Event for channel communicationxengineering