Commit Graph

22 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 6ed46d051c
Switch to niknaks (#4)
* Dub

- Added `niknaks` dependency

* Marshall

- `encodeBformat(byte[])` now uses niknaks for binary operations

* Dub

- Upgraded `niknaks` dependency to version `0.3.0`

* Client

- Removed bit-twiddling, use `niiknaks.bits`

* Marshall

- `encodeBformat(byte[])` now uses niknaks
2023-10-01 19:02:42 +02:00
Tristan B. Velloza Kildaire afab414d01 Client
- Added a `close()` method
- Call `close()` on the `BClient` at the end of the unit test
2023-04-30 19:07:36 +02:00
Tristan B. Velloza Kildaire d93e96f0f8 BClient
- Documented unit test
2023-04-30 12:54:11 +02:00
Tristan B. Velloza Kildaire 84e9b401a0 BClient
- Documented both constructors
2023-04-30 12:53:00 +02:00
Tristan B. Velloza Kildaire e1a167fdbf Package ( `bformat`)
- Updated comment for `bformat.client`

- Renamed `sockets` module to `client` module
2023-04-30 12:49:13 +02:00
Tristan B. Velloza Kildaire 00664bd844 Sockets
- Added a unittest which tests `BClient`
2023-04-30 12:42:59 +02:00
Tristan B. Velloza Kildaire 8e0c161e02 Sockets
- Cleaned up whitespace
2023-04-30 01:06:18 +02:00
Tristan B. Velloza Kildaire f49d8349ce BClient
- `sendMessage(byte[])` now encodes using `bformat.marshall`'s `encodeBformat(byte[])` rather than its own code
2023-04-30 01:03:19 +02:00
Tristan B. Velloza Kildaire 3b57b6c1ae BClient
- handle erroneous `writeFully(byte[])` call in `sendMessage(byte[])`
2023-04-30 00:55:39 +02:00
Tristan B. Velloza Kildaire 3a9fccb3f2 BClient
- Translated `receiveMessage(ref byte[])` over to using the `Stream`, `stream`
- Translated `sendMessage(byte[])` over to using the `Stream`, `stream`
2023-04-30 00:41:39 +02:00
Tristan B. Velloza Kildaire b94c433115 Sockets
- Underlying transport is now a river-based `Stream`
- Second constructor added which takes in a `Stream`, the original constructor now calls it with an adhoc created `SockStream` to wrap the consumed `Socket`
2023-04-30 00:14:05 +02:00
Tristan B. Velloza Kildaire b9c4b37b59 BClient
- Holds teh socket for the lifetime of usage and you can now use `receiveMessage(ref byte[])` and `sendMesssage(byte[])` on it
2023-04-30 00:01:23 +02:00
Tristan B. Velloza Kildaire 2eb45381d1 - Added unit tests
- Updated `.gitignore`
2023-03-25 22:32:40 +02:00
Tristan B. Velloza Kildaire a2eb975b53 Marshall
- Documented module
2023-03-25 21:54:18 +02:00
Tristan B. Velloza Kildaire 7b3908b053 Package (bformat)
- Imported `decodeMessage(byte[])` and `encodeMessage(byte[])` from the `bformat.marshall` module
2023-03-25 21:51:46 +02:00
Tristan B. Velloza Kildaire bcd29bac3d Marshall
- Added documentation for `decodeMessage(byte[])`
- Added documentation for `encodeMessage(byte[])`
2023-03-25 21:50:33 +02:00
Tristan B. Velloza Kildaire f8f0803c98 Package (bformat)
- Documented package/module
2023-03-25 21:47:12 +02:00
Tristan B. Velloza Kildaire 1f7cb11804 Package (bformat)
- Documented both imports seperately
2023-03-25 21:39:50 +02:00
Tristan B. Velloza Kildaire e288324b0a Sockets
- Documented module
2023-03-25 21:36:09 +02:00
Tristan B. Velloza Kildaire 0814ec87e9 Sockets
- Added documentation for `receiveMessage(Socket, ref byte[])`
2023-03-25 21:07:56 +02:00
Tristan B. Velloza Kildaire a3d01f43cf Sockets
- Added documentation for `sendMessage(Socket, byte[])`
2023-03-25 21:04:15 +02:00
Tristan B. Velloza Kildaire 7245572a97 - Restructured whole package 2023-03-25 20:59:38 +02:00