Commit Graph
99 Commits
Author SHA1 Message Date
sashakoshka 2080d60793 tape: Remove array tests from types_test.go 2025-05-18 14:47:11 -04:00
sashakoshka c3337641bc tape: Break out array code into separate file 2025-05-18 00:06:50 -04:00
sashakoshka 4438210963 tape: Add N length support to all types 2025-05-17 23:55:56 -04:00
sashakoshka 8d5ba2fa39 tape: EncodeGBEU returns the amount of bytes written 2025-05-17 10:38:50 -04:00
sashakoshka a05c034313 tape: Clean up 2025-05-16 21:42:40 -04:00
sashakoshka 1b25e306a6 tape: Add GBEU encoding/decoding support 2025-05-16 21:27:11 -04:00
sashakoshka dd5e7e96d5 design: Remove note about this limitation 2025-05-15 17:56:41 -04:00
sashakoshka 835d623087 Change the protocol definition for tape to conform to #2 2025-05-15 17:49:29 -04:00
sashakoshka 83443b8c88 design: Fix documentation on message payload length 2025-05-14 15:15:03 -04:00
sashakoshka 0b98c768b3 Fix some outdated doc comments 2025-05-14 14:44:27 -04:00
sashakoshka 218949bd46 Remove quic
It's clear it won't survive this change because I can't even test
it, so who knows if its good enough to have in main.
2025-05-14 14:39:19 -04:00
sashakoshka 2fdf7d490d Remove unneeded code 2025-05-14 13:52:03 -04:00
sashakoshka d60beccbcd Finally fix A... this took too long 2025-05-14 13:44:06 -04:00
sashakoshka 23c37c3d1f Fix transaction ID counting 2025-04-25 19:57:33 -04:00
sashakoshka a83aedc128 Break METADAPT-A client/server environment from TestConnA 2025-04-25 18:38:01 -04:00
sashakoshka c0bfcc02f7 Send a close message when METADAPT-A transactions close 2025-04-25 18:19:43 -04:00
sashakoshka 7a0bf64c17 Implement SendWriter for METADAPT-B 2025-04-25 18:15:38 -04:00
sashakoshka 9d2bbec7f9 Update METADAPT-A implementation 2025-04-25 18:14:47 -04:00
sashakoshka dd89245c34 Change the result of Trans.SendWriter to a WriteCloser 2025-04-25 18:06:00 -04:00
sashakoshka 41f5cfefab Implement SendWriter for METADAPT-A 2025-04-25 17:53:12 -04:00
sashakoshka 8a3df95491 Clarify concurrency in Trans methods 2025-04-25 16:06:17 -04:00
sashakoshka c51a81bc13 Add a SendWriter method to Trans 2025-04-25 16:02:23 -04:00
sashakoshka 47645a8fce Pass TestDecodeMessageBErr 2025-04-25 15:26:12 -04:00
sashakoshka 87c4ac8efb More robust integer comparison 2025-04-25 15:21:52 -04:00
sashakoshka f6fe9c307d This should have been in the last commit 2025-04-25 15:17:32 -04:00
sashakoshka 9bf0c596ba Make TestEncodeMessageAErr pass 2025-04-25 15:12:01 -04:00
sashakoshka 86cf3ee89d Make the TestConnA pass 2025-04-25 15:08:31 -04:00
sashakoshka 8fe3ba8d4f Close METADAPT-A transaction channel 2025-04-25 15:07:47 -04:00
sashakoshka cbaff8b593 Allow readerA.pull to return an actual result 2025-04-25 14:15:53 -04:00
sashakoshka 46c6361602 Encode METADAPT-A MMBs properly lmao 2025-04-22 20:10:57 -04:00
sashakoshka fac0c4e31d Actually use defaultSizeLimit 2025-04-22 20:03:40 -04:00
sashakoshka 945d81c505 METADAPT-B tests run 2025-04-21 20:51:02 -04:00
sashakoshka f34620c434 METADAPT-A tests run 2025-04-21 20:50:33 -04:00
sashakoshka 7a766b74d8 Name return values of decodeMessageA 2025-04-21 20:49:58 -04:00
sashakoshka 6de3cbbc48 Fix method signature of SetSizeLimit 2025-04-21 19:10:45 -04:00
sashakoshka e4f13a4142 WIP METADAPT-A changes 2025-04-06 17:01:00 -04:00
sashakoshka db10355c84 Change the size limit type to an int64 2025-04-06 14:19:39 -04:00
sashakoshka f4f8039fa0 Support getting a reader for a message in METADAPT-B 2025-04-06 14:17:39 -04:00
sashakoshka fe8f2fc3ea Do not require METADAPT to return a message length when getting a reader 2025-04-06 11:25:28 -04:00
sashakoshka b07cdf088a design: State support for TCP/TLS 2025-04-06 11:25:12 -04:00
sashakoshka 4eae69dc94 Add ReceiveReader to Transaction interface 2025-04-05 21:08:41 -04:00
sashakoshka 5c28510342 Add new METADAPT protocol specifications from #2 2025-04-05 21:04:45 -04:00
sashakoshka 1ac0ed51c7 METADAPT-B supports setting a message length limit 2025-04-04 16:07:20 -04:00
sashakoshka 174634a330 METADAPT-B can now send very large messages 2025-04-04 15:42:15 -04:00
sashakoshka a0b49e950e METADAPT-A handles closing messages 2025-01-28 17:06:23 -05:00
sashakoshka 5b42030f9d Fix another "deadlock" in METADAPT-A
What fucking idiot go developer decided recv from a nil channel
locks the entire program. ?????? just have it return zero value and
false.
2025-01-28 16:14:27 -05:00
sashakoshka 4daccca66a Fix METADAPT-A deadlock when closing transaction 2025-01-28 16:11:23 -05:00
sashakoshka 4647f91abe assets: Add icon 2025-01-27 22:49:20 -05:00
sashakoshka 54022e5541 examples: Add chat example that also doesn't work properly yet 2025-01-27 22:36:52 -05:00
sashakoshka 72df1e8d11 More METADAPT-A testing that doesnt work :( 2025-01-27 22:36:29 -05:00
sashakoshka a47a3599d3 TestConnA can now be run over and over again 2025-01-26 00:31:03 -05:00
sashakoshka b54fc02a35 Test METADAPT-A 2025-01-26 00:28:59 -05:00
sashakoshka 5e885a0bd3 Fix METADAPT-A not receiving more than one message 2025-01-26 00:26:12 -05:00
sashakoshka 659bcecbe6 Update go-util 2025-01-26 00:25:54 -05:00
sashakoshka 540c64a421 Fix METADAPT-A not unlocking a mutex properly 2025-01-24 23:22:27 -05:00
sashakoshka 0fed1a2451 Fix METADAPT-A transaction IDs not starting at 1/-1 2025-01-24 23:06:46 -05:00
sashakoshka 9b89c47ecc Fix segfault in METADAPT-A 2025-01-24 22:56:02 -05:00
sashakoshka 32e7e09cc8 Add Default method to Option 2025-01-22 22:23:02 -05:00
sashakoshka 5d5ee9c644 generate: Use new option type 2025-01-22 17:40:43 -05:00
sashakoshka 62e3c7814c Fix option type 2025-01-22 17:40:33 -05:00
sashakoshka 9bad4d68f1 Add Addr methods to METADAPT implementations 2025-01-22 16:57:06 -05:00
sashakoshka b514c0d621 Add convenience constructor for Option 2025-01-22 16:56:46 -05:00
sashakoshka c5e2e0f993 generate: Fix broken doc comments 2025-01-22 16:56:05 -05:00
sashakoshka f0753c5113 Add address methods to Conn 2025-01-21 21:07:52 -05:00
sashakoshka 19fa5983d6 Upgrade go-util 2025-01-21 21:07:32 -05:00
sashakoshka 00f55788c2 Add note about the dial function 2025-01-21 20:37:10 -05:00
sashakoshka f1d6bf7b1b Dial works
quic-go does not have support for choosing a network somehow.
very basic feature, you'd think, considering the stdlib's net has
full support for that. it would be passing a string down.
2025-01-21 20:28:08 -05:00
sashakoshka b8c7c5bee8 generate: Provide way to send and receive messages easily 2025-01-21 17:23:55 -05:00
sashakoshka f49c977052 generate: Wrong error 2025-01-21 16:37:50 -05:00
sashakoshka fe5f2448a1 generate: What 2025-01-21 16:37:21 -05:00
sashakoshka 69f3d4973b cmd/hopp-generate: Add code generator command 2025-01-21 16:23:07 -05:00
sashakoshka 2e28cf7c06 generate: Actually generate code 2025-01-21 16:22:48 -05:00
sashakoshka 14c417b740 generate: Change protocol parsing 2025-01-21 16:22:30 -05:00
sashakoshka 2b5db83015 design: Clearly explain PASTA 2025-01-21 16:21:25 -05:00
sashakoshka 9c64274622 Add option type
TODO: when go 1.24 drops, turn it into a generic type alias
2025-01-21 16:20:40 -05:00
sashakoshka 3b97aa6a81 Add ErrTablePairMissing error 2025-01-21 16:20:16 -05:00
sashakoshka 17fd0ba161 Add option type 2025-01-20 18:45:56 -05:00
sashakoshka 6a883cebbf generate: Alter protocol parsing to support HOPP features 2025-01-20 13:56:03 -05:00
sashakoshka 382cc113c5 Add listeners 2025-01-19 19:29:04 -05:00
sashakoshka 06d5e60341 Break out default TLS and QUIC configs 2025-01-19 19:27:56 -05:00
sashakoshka b6d6b1d777 design: Make Transports section clearer 2025-01-19 19:27:34 -05:00
sashakoshka 044a1a6119 Update METADAPT-A and METADAPT-B accordingly 2025-01-19 19:27:15 -05:00
sashakoshka 92b3da4282 Connections do not accept transactions using a context
Having there be a mandatory context will just create more waste
and slow stuff down for transports which don't support it.
2025-01-19 19:18:35 -05:00
sashakoshka 41ff2164bd Rename listener.go to listen.go 2025-01-19 17:10:02 -05:00
sashakoshka 02dbcacd28 Improve doc comments 2025-01-19 17:09:20 -05:00
sashakoshka 585c8038d3 Fix METADAPT-B encoding 2025-01-19 16:36:01 -05:00
sashakoshka e872cbe8fd Test METADAPT-B encoding and decoding 2025-01-19 16:35:40 -05:00
sashakoshka 31930f871b Break out encodeMessageB, decodeMessageB 2025-01-19 15:54:13 -05:00
sashakoshka 256f0202a2 Encoding being placed before decoding everywhere makes sense 2025-01-19 15:52:11 -05:00
sashakoshka fb7ab2487e Fix METADAPT-A encoding 2025-01-19 15:44:25 -05:00
sashakoshka 15b8a1a328 Test METADAPT-A encoding and decoding 2025-01-19 15:43:59 -05:00
sashakoshka 01cda20665 tape: Fix U16CastSafe 2025-01-19 15:41:54 -05:00
sashakoshka aac5266c0c tape: Test U16CastSafe 2025-01-19 15:41:43 -05:00
sashakoshka c748ca2223 Fix transaction ID size 2025-01-19 14:21:58 -05:00
sashakoshka dc560075d7 Break out encodeMessageA 2025-01-19 13:14:53 -05:00
sashakoshka 68961f8ad8 After the week I've had, I deserve to make a commit like this lmao 2025-01-19 13:09:37 -05:00
sashakoshka 6f55ee1b45 Remove nonsense from README 2025-01-09 02:42:03 -05:00
sashakoshka b6fd298ed9 design: Better explain METADAPT conversion of stream-oriented protocols 2025-01-09 02:40:06 -05:00
sashakoshka 1bc804190e Initial commit 2025-01-09 02:31:15 -05:00