Commit Graph

385 Commits

Author SHA1 Message Date
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
michael-bailey 71b77de447 adding user update support 2021-04-22 12:56:53 +00:00
michael bailey 5aa4f8caf6
Pulling basic server functionality into development (#9)
* removed redundant files

* moved files to new foundation library

* added new foundation crate

* added new client program crate

* added new server program crate

* added new serverctl program crate

* change toml to be a workspace instead of a project

* implementing more connection to network functionality

* implementing more connection to network functionality

* Implemented IMessageable for client, client manager as well as basic commands in netmgr

* fixing blocking issues with componenets

* adding network stream queuefor handling connections in a non blocking way

* ffixing blocking calls in network manager

* adding threading support to prevent blocking calls

* running rust formatter

* Created Client threads and implemented connect command

* fixed client not disconnecting issue

* adding messaging support between clients

* Implemented client messaging through the server

* removing unnecessary prints and thread delays

* adding support for updating clients
2021-04-13 18:17:58 +01:00
michael bailey 0572d0d0e9
Merge pull request #8 from Mitch161:consolidation-branch
Consolidation branch -> development branch
2021-03-30 07:29:41 +01:00
michael-bailey cf16367d51 removing dead code 2021-03-20 12:38:42 +00:00
michael-bailey 8f3d1549ca fixed issue with channel blocking 2021-03-18 23:37:48 +00:00
michael-bailey 53ff1858f6 implemented client manager tick function 2021-03-18 23:24:48 +00:00
michael-bailey d6c4baf556 Implemented client add functionality in the server. 2021-03-18 20:02:56 +00:00
michael-bailey f3ab1f37da Added client connecting condition to network manager 2021-03-18 19:55:04 +00:00
michael-bailey 30d9e5ba2d modified client to multiple params instead of map 2021-03-18 17:03:15 +00:00
michael-bailey 7d749d0de0 Moved TcpListender form Server To NetworkManage. 2021-03-18 16:52:03 +00:00
michael-bailey 436975e3c5 Moved TcpListender form Server To NetworkManage. 2021-03-18 16:42:42 +00:00
michael-bailey a5eff0bd32 merge server implementation branch 2021-03-18 16:05:27 +00:00
michael-bailey bb5fbdc43b removed redundant function 2021-03-18 15:57:34 +00:00
michael-bailey b53a63fd54 setting up json based message protocol 2021-03-18 11:50:12 +00:00
michael-bailey 19832f0aa1 added basic server messages. 2021-03-18 10:39:11 +00:00
michael-bailey 232effad14 implemented basic connection handling in the server 2021-03-18 10:39:11 +00:00