Commit Graph

148 Commits

Author SHA1 Message Date
Tristan B. Kildaire 67088afaa2 Fixed out of range error 2021-01-30 12:56:41 +02:00
Tristan B. Kildaire 068636cde7 Fixed segmentation fault 2021-01-30 12:50:44 +02:00
Tristan B. Kildaire 9f7330a3df WIP: Server linking
Seg fault on link attempt it seems
2021-01-30 12:49:39 +02:00
Tristan B. Kildaire 9f0d66b7bc Encode server name 2021-01-30 12:25:40 +02:00
Tristan B. Kildaire c06be5ae2b Added `.getname()` to fetch name from configurstion file 2021-01-30 12:25:35 +02:00
Tristan B. Kildaire 85c86ad3ba Use new tristanable methods 2021-01-30 12:20:32 +02:00
Tristan B. Kildaire ed350c5c71 Upgraded to new tristanable 2021-01-30 12:10:48 +02:00
Tristan B. Kildaire b5f6cec7b2 Added TODO 2021-01-30 12:06:53 +02:00
Tristan B. Kildaire 77a4b01a3a Added bformat encoding 2021-01-30 11:50:11 +02:00
Tristan B. Kildaire 5021c5038c WIP: Send LINK command 2021-01-30 11:39:58 +02:00
Tristan B. Kildaire ae93617b79 Cleaned up 2021-01-29 21:38:50 +02:00
Tristan B. Kildaire 905ad50188 Moved code for outbound server linking to DServer 2021-01-29 21:21:59 +02:00
Tristan B. Kildaire ea36ba240d Commented 2021-01-29 21:13:08 +02:00
Tristan B. Kildaire 668790e33b Move code to the thread worker
Start thread worker
2021-01-29 21:12:27 +02:00
Tristan B. Kildaire 5ecb1faa19 Initiate outbound connetion 2021-01-29 20:48:18 +02:00
Tristan B. Kildaire 7c82b938b8 d 2021-01-29 19:49:39 +02:00
Tristan B. Kildaire 8116861986 Removed old code 2021-01-29 18:29:05 +02:00
Tristan B. Kildaire ff914cf6b5 Attach link manager (Meyer) to the server 2021-01-29 17:09:15 +02:00
Tristan B. Kildaire 0bf6e70214 Refactored startup code, remove duplicate try-catches 2021-01-29 17:00:22 +02:00
Tristan B. Kildaire fa15d5cb08 Restructured configuration sub-system 2021-01-29 16:44:31 +02:00
Tristan B. Kildaire a75afc5528 Passed DServer object in 2021-01-29 15:04:08 +02:00
Tristan B. Kildaire d8f66aa271 Set the worker thread for outbound server links 2021-01-29 15:00:56 +02:00
Tristan B. Kildaire 611d9a1cc2 Disable creating Meyer in `startServer` 2021-01-29 14:30:40 +02:00
Tristan B. Kildaire 5064a661fd Set to public 2021-01-29 14:30:16 +02:00
Tristan B. Kildaire 1c65c86441 STart server after configuring linking 2021-01-29 14:30:02 +02:00
Tristan B. Kildaire 18ba20bc21 DOn't start the server on construction 2021-01-29 14:29:43 +02:00
Tristan B. Kildaire 5f443cfa2c Configure at start up (server linking) 2021-01-29 14:28:52 +02:00
Tristan B. Kildaire 4e4605ff4c COmpute list of active servers to be linked to 2021-01-29 11:08:24 +02:00
Tristan B. Kildaire 90aeab8344 Pass DLinkCOnfig to DMeyer 2021-01-28 23:43:22 +02:00
Tristan B. Kildaire f780df7c56 Typo fix 2021-01-28 16:28:54 +02:00
Tristan B. Kildaire d6a62713a2 Encode sender's username in direct messages 2021-01-28 16:18:33 +02:00
Tristan B. Kildaire 1c9168a6b8 PROTOCOL UPDATE
Type: NotificationMessage
Sub-type: Channel

Channel changes from 1->0

Direct messages are meant to be 1
2021-01-28 15:39:35 +02:00
Tristan B. Kildaire 32b3ca7661 Added missing sub-type to "New message" notification type 2021-01-28 15:21:23 +02:00
Tristan B. Kildaire fe2aef4c41 Fixed compilation issues 2021-01-28 14:52:36 +02:00
Tristan B. Kildaire a00acaa35e Later work on multiple sessions 2021-01-28 11:14:37 +02:00
Tristan B. Kildaire c7a4cfbadd Added TODO 2021-01-27 22:26:56 +02:00
Tristan B. Kildaire 164eee4f3f Code cleanup 2020-12-22 00:54:28 +02:00
Tristan B. Kildaire dc6efc50b7 Print out config on startup 2020-12-20 23:48:52 +02:00
Tristan B. Kildaire d860170429 Removed unused constructor 2020-12-20 22:04:59 +02:00
Tristan B. Kildaire bee016f521 Parse new listener blocks 2020-12-20 19:36:53 +02:00
Tristan B. Kildaire eee69dcbac Code cleanup 2020-12-20 18:15:02 +02:00
Tristan B. Kildaire 0da2a73226 Added missing `bind()` call to DListener 2020-12-20 18:12:11 +02:00
Tristan B. Kildaire 917402e974 The dserver now starts all constructed listeners 2020-12-20 17:47:15 +02:00
Tristan B. Kildaire 9e3da7d09f Removed sockets from dserver.d, sockets are now per each DListener 2020-12-20 17:44:22 +02:00
Tristan B. Kildaire 40cb881816 Code cleanliness 2020-12-20 17:42:23 +02:00
Tristan B. Kildaire aec29f0fd1 Added method, `construcListeners()`, to instantiate listeners 2020-12-20 17:39:56 +02:00
Tristan B. Kildaire b9513bae96 Merge branch 'listeners' into multiple_listeners 2020-12-20 17:22:18 +02:00
Tristan B. Kildaire 04ee591936 Return all addresses requested to bind to 2020-12-20 17:20:46 +02:00
Tristan B. Kildaire d1e1297a26 Handle error 2020-12-04 14:11:55 +02:00
Tristan B. Kildaire cc95b8e2e9 Add listener array to server 2020-11-03 10:56:58 +02:00