Commit Graph

301 Commits

Author SHA1 Message Date
michael-bailey 89d673b32f moved Lua structs to separate module 2022-05-09 23:06:54 +01:00
michael-bailey 6ebdb441e1 added basic callback support to ClientManager 2022-05-09 23:06:54 +01:00
michael-bailey b29d055aa1 added client indexing to client manager 2022-05-09 23:06:54 +01:00
michael-bailey 5bf1d260ce Updated testing script 2022-05-09 23:06:54 +01:00
michael-bailey eb3c202a4e Adde fields to server to get client manager 2022-05-09 23:06:54 +01:00
michael-bailey 43cafc2c4d Made client manager Lua scriptable 2022-05-09 23:06:54 +01:00
michael-bailey 0681f2ea65 made client Lua scriptable 2022-05-09 23:06:54 +01:00
michael-bailey b33db558e7 Update client.rs
fixed stray connection
2022-05-09 23:06:54 +01:00
michael-bailey 4cf7cb5cde added basic scripting abilities to the server 2022-05-09 23:06:54 +01:00
michael-bailey 57d8cd920b Made server, Lua scriptable. 2022-05-09 23:06:54 +01:00
michael-bailey 62f4803d80 Added Lua dependency 2022-05-09 23:06:54 +01:00
michael-bailey 77bf1e0e25 Merge branch 'feature/iced-client' into develop 2022-03-02 17:06:31 +00:00
michael-bailey 90d8ead026 Update client.rs
added tokio, to protect client connections.
2022-03-01 22:57:47 +00:00
michael-bailey 2783c381e0 implemented message sending between users 2022-03-01 21:06:55 +00:00
michael-bailey e0b65fb520 Update network_manager.rs
this protects the network manager from crashing when a erroneous message is sent
2022-03-01 20:51:56 +00:00
michael-bailey 8f100c0f1c Added the ability to disconnect from the server 2022-03-01 20:12:21 +00:00
michael-bailey 01da5afb46 Update client.rs
added global broadcasting
2022-03-01 19:58:33 +00:00
michael-bailey 9f83b99bbf Update client.rs
- removed redundant fields
2022-03-01 19:43:02 +00:00
michael-bailey 8f0b502487 cleared up warnings 2022-03-01 19:35:59 +00:00
michael-bailey e3c1f12be5 Added Message Broadcasting functionality 2022-03-01 17:52:18 +00:00
michael-bailey 086210fbd9 Update client_manager.rs
bunch more changes

yes i know i'm rubbish at this plz don't say anything :(
2022-03-01 17:30:45 +00:00
michael-bailey 2c71ca56c6 Update server.rs
- removed redundant messages
2022-03-01 17:27:35 +00:00
michael-bailey 26383d4031 moved some messages around 2022-03-01 13:34:33 +00:00
michael-bailey 685f1c7f18 Update messages.rs
formatting
2022-03-01 11:44:20 +00:00
michael-bailey 7b148e9b6e Update client.rs
meant to add this earlier
2022-03-01 11:44:11 +00:00
michael-bailey 0e45c4e803 Update server.rs
- refactored server to simplify message passing
2022-03-01 11:43:35 +00:00
michael-bailey 7e920c25c1 Update client_manager.rs
+ created function to add/remove clients to the client manager.
2022-02-28 20:42:15 +00:00
michael-bailey cfe72b6c7b Update client_manager.rs
+ created function to get the number of connected clients
2022-02-28 18:13:27 +00:00
michael-bailey 2e74aa058f Update client_manager.rs
+ updated lifetime bounds.
2022-02-28 17:50:59 +00:00
michael-bailey 294edc4df3 Update client_manager.rs
- implemented handle channel method from old start method.
- added notes to possible issues.
2022-02-28 17:48:15 +00:00
michael-bailey 9512b82cd0 Update client_manager.rs
- Added type arguments to Client manager
- deprecated start method
2022-02-28 17:47:08 +00:00
michael-bailey ff85d1c28b Update client_manager.rs
swapped lock type for tokio lock
2022-02-28 17:45:57 +00:00
michael-bailey 77f4bf5f08 Stripped server of functinoality
This is temporary whilst the client manager is being tested.
2022-02-28 17:45:39 +00:00
michael-bailey 140afe1a4a Added client manager tests 2022-02-26 17:12:55 +00:00
michael-bailey d77d7f20a0 Impl IManager for ClientManager 2022-02-26 17:12:41 +00:00
michael-bailey 8197231401 Right bare with me...
This doesnt work for now but i have a system that works.

After this commit i will be resuming the smaller changes.

I needed to do this to find a new approach.

God save my mind.
2022-02-26 09:21:41 +00:00
michael-bailey ccd0cb1c5e meant to add this earlier 2022-02-25 21:17:56 +00:00
michael-bailey d904e83f14 Update network_manager.rs
Converted over to new messaging system.
2022-02-25 21:10:24 +00:00
michael-bailey bed642a31d added network Manager
tl;dr, as the title says
2022-02-19 00:53:18 +00:00
michael-bailey 8e519c5fa0 updated connection
+ added manager trait
+ updated connection to use more idomatic rust code converted enums to Strigns rather that &str
+
2022-02-19 00:52:45 +00:00
michael-bailey 31a25c2f20 exposed server as lib
+created lib output for server
+ added extra dependencies
+ added functions to retrieve the port of a server
2022-02-19 00:51:32 +00:00
michael-bailey ec2b16c10a Created connection abstraction
This abstracts a TcpStream await to use any serialisable types.
2022-02-06 14:07:52 +00:00
michael-bailey 8e78bf542c created basic ui that counts 2022-02-04 22:22:59 +00:00
michael-bailey d320f345c8 Created global message support 2022-02-01 20:51:04 +00:00
michael-bailey 14495e1b27 Moved threads to tokio async 2021-08-03 21:58:18 +01:00
michael-bailey 2f8677710a Moved threads to tokio async 2021-08-03 21:58:18 +01:00
michael-bailey 0ed2c5a290 added encryption example 2021-07-10 14:03:06 +01:00
michael-bailey 8ebfbb0a70 changed messaegs to include a type property 2021-07-10 14:02:04 +01:00
michael-bailey 614e73b788 replaced duplicate fields 2021-04-25 14:28:39 +01:00
michael-bailey 137ef3d3b1 Adding public key storage 2021-04-23 22:28:32 +00:00