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
Tristan B. Kildaire
80d96c20a5
Added `decodeMessage(byte[])` which can decoode a bformat-encoded message and return the message payload
2021-07-17 01:23:55 +02:00
Tristan B. Kildaire
82f9509e78
Added `encodeBformat(byte[])` wich allows one to simply encode a message into the bformat format
2021-07-17 00:14:41 +02:00
Tristan B. Kildaire
b3b3ee9d49
Use MSG_WAITALL
2021-07-16 18:08:01 +02:00
Tristan B. Kildaire
3a528ad2cc
Corrected problems
2020-12-04 18:56:56 +02:00
Tristan B. Kildaire
a236409034
Full wait doesn't work
2020-12-04 18:55:25 +02:00
Tristan B. Kildaire
8e5647347d
Merge branch 'syscall_reduction' into master
2020-12-04 17:46:15 +02:00
Tristan B. Kildaire
790aca5f50
CLeaned up
2020-12-04 17:45:42 +02:00
Tristan B. Kildaire
5db2ac18dd
USe MAG_WAITALL
2020-12-04 17:41:24 +02:00
Tristan B. Kildaire
beb635c403
Byte swap when the numbers are encoded as Big Endian on BE platforms, such that they are in little endian (the protocol's spec)
2020-12-04 17:28:29 +02:00
Tristan B. Kildaire
3c84a5b0ca
Byte swap the received little endian bytes when on big endian machines such that the interpretation is transferred correctly
2020-12-04 17:26:17 +02:00
Tristan B. Kildaire
97781fb9c3
Removed uneeded imports.
2020-06-17 11:25:58 +02:00
Tristan B. Kildaire
2d26cde27e
Madegeneric
2020-06-16 18:09:41 +02:00
Tristan B. Kildaire
a8d654bf6a
Renamed functions.
2020-05-02 19:51:28 +02:00
Tristan B. Kildaire
fa6d62a6cf
Added missing source directory.
2020-05-02 19:43:48 +02:00
Tristan B. Kildaire
85cef23b43
Removed app.d
2020-05-02 19:36:12 +02:00
Tristan B. Kildaire
69b5294569
Location update.
2020-05-02 19:30:19 +02:00
Tristan B. Kildaire
55733d17c5
Set package type to `library`.
2020-05-02 19:27:02 +02:00
Tristan B. Kildaire
4d981cd97d
Test.
2020-05-02 19:23:56 +02:00
Tristan B. Kildaire
04cd903389
Make public.
2020-05-02 19:21:31 +02:00
Tristan B. Kildaire
59d643069c
Added code.
2020-05-02 19:19:20 +02:00
Tristan B. Kildaire
e6ae0b7f56
Added dub init files
2020-05-02 19:14:44 +02:00