Commit Graph

356 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 23b5b3944b Messages
- Fix compilation error on `ldc2` due to duplicate import
2023-10-24 16:58:53 +02:00
Tristan B. Velloza Kildaire ef963e898d README
- Fixed nwo-incorrect depenedency
2023-10-24 16:56:00 +02:00
Tristan B. Velloza Kildaire be5043cb7e
Merge pull request #42 from deavmi/hotfix/migrate_libsnooze
Migrate from libsnooze
2023-10-24 16:50:21 +02:00
Tristan B. Velloza Kildaire 78ba1d8559 Client
- Removed `SnoozeError` reference
2023-10-23 22:30:59 +02:00
Tristan B. Velloza Kildaire fca776c29b Sender
- Updated `sendHandlerFunc()` to use the condition variable
- Callind `end()` will wakeup the sleeping thread
2023-10-23 22:19:07 +02:00
Tristan B. Velloza Kildaire 3c97e9db9d Sender
- Calling `sq(ubyte[])` now will wake up the condition variable
2023-10-23 22:14:05 +02:00
Tristan B. Velloza Kildaire c25c28c256 Sender
- Calling `sq(ubyte[])` now will wake up the condition variable

Receiver

- Calling `rq(ubyte[])` now will wake up the condition variable
- Updated `recvHandlerFunc()` to use the condition variable
- Callind `end()` will wakeup the sleeping thread
2023-10-23 22:13:52 +02:00
Tristan B. Velloza Kildaire ea2b07045a Client
- Removed import of `SnoozeError` from `libsnooze.exceptions`
2023-10-22 20:52:29 +02:00
Tristan B. Velloza Kildaire 721b490877 Merge branch 'master' into hotfix/migrate_libsnooze 2023-10-01 20:59:27 +02:00
Tristan B. Velloza Kildaire aca76f01e8 Pipelines
- Added code coverage support
2023-10-01 17:38:23 +02:00
Tristan B. Velloza Kildaire 6cb06b3e19 Client (unit tests)
- Use rany's node
2023-10-01 17:35:10 +02:00
Tristan B. Velloza Kildaire 38ef18ea6b Sender
- Removed libsnooze imports
2023-10-01 17:33:43 +02:00
Tristan B. Velloza Kildaire a8eceb13a0 Receiver
- Removed libsnooze imports
2023-10-01 17:33:31 +02:00
Tristan B. Velloza Kildaire 2d299fffe0 Dub
- Removed `libsnooze` dependency
2023-10-01 17:31:58 +02:00
Tristan B. Velloza Kildaire 84adc020f3 Unit tests (`client`)
- Use 1 second fakelag when doing unit tests else my server kicks me (results in error I still need to handle)
2023-07-06 19:41:35 +02:00
Tristan B. Velloza Kildaire 0d38a8439d ConnInfo
- Set the default send fake lag to 0 seconds (i.e. no send lag)
2023-07-06 19:38:07 +02:00
Tristan B. Velloza Kildaire 624db020e7
Merge pull request #32 from deavmi/bugfix/stripper
Bugfix/stripper
2023-07-06 19:32:16 +02:00
Tristan B. Velloza Kildaire f2b0c34842 Unit tests (`messages`)
- Fixed unit test for `ChecksMode.HARDCORE` (typo fix)
2023-07-06 19:30:14 +02:00
Tristan B. Velloza Kildaire 9849fd834b Unit tests (`messages`)
- Fixed unit test for `ChecksMode.HARDCORE`
2023-07-06 19:28:10 +02:00
Tristan B. Velloza Kildaire 81c6cc7010 Unoit tests (`messages`)
- Test the `ChecksMode.HARDCORE` and `ChecksMode.EASY` integration of `Message`'s `encode(ChecksMode)` function
2023-07-06 19:25:28 +02:00
Tristan B. Velloza Kildaire 4b1c827065 Unit tests (`messages`)
-  Added description to unit test which tests the detection of illegal characters
2023-07-06 19:12:13 +02:00
Tristan B. Velloza Kildaire 95505af624 Unit tests (`messages`)
- Added a unit test which tests if a message containing bad characters, once stripped, is then valid.
- Essentially, tests the stripper.
2023-07-06 19:11:37 +02:00
Tristan B. Velloza Kildaire 0e6c5fb013 Client
- Cleaned up and removed now-completed TODOs
2023-07-03 16:42:26 +02:00
Tristan B. Velloza Kildaire 499e53d19d Client
- Implemented `ref-string`-based `textpass(ref string)` which can validate and strip at the same time
- Replaced all calls to `isValidText(string)` with `textPass(ref string)`
2023-07-03 16:37:49 +02:00
Tristan B. Velloza Kildaire 2a09edd578 Messages
- Made `hasIllegalCharacters(string)` and `stripIllegalCharacters(string)` public
2023-07-03 16:37:08 +02:00
Tristan B. Velloza Kildaire b6a0ae63b6 Merge branch 'master' into bugfix/stripper 2023-07-03 16:22:41 +02:00
Tristan B. Velloza Kildaire 98e5866044 READSME update 2023-06-30 13:19:14 +02:00
Tristan B. Velloza Kildaire 9c9a573f4b - Corrected required version of `libsnooze` 2023-06-30 13:09:08 +02:00
Tristan B. Velloza Kildaire 50866a7e9f
Merge pull request #33 from deavmi/bugfix/shutdown
Shutdown gracefully
2023-06-30 12:42:20 +02:00
Tristan B. Velloza Kildaire 897105a101 Client
- Added some future TODOs
2023-06-30 12:36:32 +02:00
Tristan B. Velloza Kildaire 564601afe7 Client
- Now `doThreadCleanup()` will set the `receiver`, `sender` and `engine` to null such that no referenecs to it remain such that they can be gc'd
2023-06-30 12:33:51 +02:00
Tristan B. Velloza Kildaire 855925c231 Client
- Documented a methodClient

- Added some TODOs which need to be done
- When checking for active session use `running == false` not `socket is null` which is not set back to `null` when disconnected after one session

Unit tests
2023-06-30 12:29:34 +02:00
Tristan B. Velloza Kildaire a782bc9317 Client
- Added some TODOs which need to be done
- When checking for active session use `running == false` not `socket is null` which is not set back to `null` when disconnected after one session

Unit tests
2023-06-30 12:27:46 +02:00
Tristan B. Velloza Kildaire 063701fc94 Client
- Don't construct a new `Receiver` and `Sender` on construction, rather only do so when `connect()` is called
2023-06-30 12:13:05 +02:00
Tristan B. Velloza Kildaire d3df5c015f Client
- Made `engine` private and now accessible via a package-accessible getter method, `getEngine()`

Receiver

- Use `getEngine()` instead
2023-06-29 21:24:19 +02:00
Tristan B. Velloza Kildaire f84b019416 Client
- Make `running` private and only read-accessile via `isRunning()` method which is available at the package level
- Added todo for `engine` field

Receiver

- Use `isRunning()` now

Sender

- Use `isRunning()` now
2023-06-29 21:22:46 +02:00
Tristan B. Velloza Kildaire 7cfed69036 Receiver
- Dispose the `Event` after call to `join()`

Sender

- Dispose the `Event` after call to `join()`
2023-06-29 18:35:42 +02:00
Tristan B. Velloza Kildaire 6119dd94c8 Dub
- Upgraded to `libsnooze` version `1.3.0-beta`
2023-06-29 18:35:28 +02:00
Tristan B. Velloza Kildaire 95b061e6e4 Merge branch 'master' into bugfix/shutdown 2023-06-29 00:15:21 +02:00
Tristan B. Velloza Kildaire 93ae6daba4 Merge branch 'master' into bugfix/stripper 2023-06-29 00:15:12 +02:00
Tristan B. Velloza Kildaire c1cb78573e Lekker 2023-06-29 00:13:56 +02:00
Tristan B. Velloza Kildaire 6b913069cf Merge branch 'master' into bugfix/shutdown 2023-06-29 00:07:38 +02:00
Tristan B. Velloza Kildaire 2c5ff66c9e Merge branch 'master' into bugfix/stripper 2023-06-29 00:07:27 +02:00
Tristan B. Velloza Kildaire fd80dde802 Dub
- Updated homepage
2023-06-29 00:05:34 +02:00
Tristan B. Velloza Kildaire 3957587363 Merge branch 'master' into bugfix/shutdown 2023-06-28 23:53:55 +02:00
Tristan B. Velloza Kildaire 2619577cad Merge branch 'master' into bugfix/stripper 2023-06-28 23:53:34 +02:00
Tristan B. Velloza Kildaire f20c078fc3 Client
- `user(string, string, string, string)` now checks for illegal characters
2023-06-28 23:53:08 +02:00
Tristan B. Velloza Kildaire d2b4ccfeda Client
- Pass in custom error messages for clarity
2023-06-28 23:42:39 +02:00
Tristan B. Velloza Kildaire f85fcde112 Client
- Cleaned up imports
2023-06-28 23:12:19 +02:00
Tristan B. Velloza Kildaire 24f548820a Client
- Removed option no longer being considered
2023-06-28 23:09:21 +02:00