Commit Graph

7 Commits

Author SHA1 Message Date
Ludovic Chenut 5683e46422
chore: update ci (#21) 2024-08-23 12:18:05 +02:00
Ludovic Chenut 6cda0c8d68
feat: stun protocol & stun connection (#9)
* feat: stun protocol & stun connection

* rename getResponse into getPong and test it

* add Username attribute

* genUfrag procedure

* Add generateRandomSeq to generate a transaction id

* First draft of getPing

* Use UdpPacketInfo tuple

* Change closing debug message

* Add proper exception tracking

* Change StunConn init behavior

* Add a last UdpPacketInfo

* Add comments

* refactor: change connection management

* Add a lot of comments/Finish refactor

* Add copyright headers on test files

* simplify newRng proc for testing

* add exception tracking for stun transport asynchronous proc

* remove ping/pong example building in the ci

* rename getPong test

* remove maximum connections

* Add ICE stun attributes

* Stun rework

* feat: getBindingRequest

* fix oversight & add comments

* Test rework

* Adds continue in stunMessageHandler loop

* remove `doAssert(false)` from Stun.connect()

* Update TODO

* fix comment typo

* fix: test lacking precision

* docs: add StunConn.init() comments

* chore: make teststun more readable

* feat: use withValue instead of getOrDefault in Stun.connect()

* feat: add check if Fingerprint is valid

* refactor: getAttribute and username/password provider

* chore: removes genUfrag, should be in libp2p instead

* chore: remove redundant test

* chore: change warn log to debug

* docs: update getBindingResponse/Request comments

* chore: renames init into new

* fix: compilation warnings

* chore: change closed line to be at the end of the close procedure

* feat: limit queues size
2024-05-24 14:14:30 +02:00
Ludovic Chenut 928fc59a62
feat: udp connection (#8) 2024-04-02 14:04:14 +02:00
Ludovic Chenut a0f6c777d8
Resetting master 2024-03-08 13:50:59 +01:00
Ludovic Chenut 79982f3dd4
update nim version 2024-03-07 16:10:58 +01:00
Ludovic Chenut fc0267de46
Add nimble test 2024-03-07 12:16:48 +01:00
Tanguy 8622406f18
Add CI 2023-01-10 15:08:36 +01:00