michael-bailey
dbf49a65b2
Revert "Merge branch 'master' into ref-method"
...
This reverts commit 1a6b344b58 , reversing
changes made to be167055e8 .
2020-08-12 20:56:05 +01:00
michael-bailey
1a6b344b58
Merge branch 'master' into ref-method
2020-08-12 17:24:12 +01:00
michael-bailey
be167055e8
connecting and disconnecting works
2020-08-12 16:44:24 +01:00
michael-bailey
b1ad04ed50
Update server_profile.rs
...
added Dissconnect method
2020-08-11 23:36:27 +01:00
michael-bailey
593fbc96ed
Update client_profile.rs
...
removing the transmit method
2020-08-11 23:36:05 +01:00
michael-bailey
dfcc3fbedc
Update main.rs
...
~ hindered the main thread when in non gui mode to lowwer resources
2020-08-11 23:35:47 +01:00
michael-bailey
5057cec283
modified the command to use a trait to parse &str
2020-08-11 23:35:00 +01:00
Mitchell
82498ca72d
removed commands module
2020-08-10 18:56:17 +01:00
Mitchell
0b824efdb8
added Debug trait
2020-08-10 18:55:27 +01:00
Mitchell
7a25bd8b6e
merged with old commands files
2020-08-10 18:55:06 +01:00
Mitchell
1f3745c0b1
commented out unit test
2020-08-10 18:54:47 +01:00
Mitchell
fa57f25d8a
added core server funcs to ui
2020-08-10 18:53:53 +01:00
michael-bailey
03ab7290c5
added functions
2020-08-09 21:17:17 +01:00
michael-bailey
ef86b89042
added proper definition of traits for classes
2020-08-09 11:36:14 +01:00
michael-bailey
a1474d01de
increment version
...
+ clap crate
~ attempting fix on getting info
+ added clap arg parsing
+ added rudementary client, remove and update and error
2020-08-07 23:48:05 +01:00
Mitch161
6d3ffc5ae5
Merge pull request #2 from Mitch161/channel-structure
...
Channel structure merge
2020-08-06 12:46:26 +01:00
michael-bailey
164542a56b
changed ui
2020-08-05 16:30:13 +01:00
michael-bailey
20afff2931
Update main.rs
...
+ added a ui using cursive.
+ moved server star and stop into the ui.
+ added specific functions for constructing the ui
2020-08-03 12:43:53 +01:00
michael-bailey
22ed3db6bb
Create mod.rs
...
+ started wok on a client api struct.
2020-08-03 12:43:03 +01:00
michael-bailey
46a6b30681
Update client_profile.rs
...
+ derived debug
+ added senders for it's thread.
+ added channel sender for the server.
+ working on heartbeat.
~ changed the handle to be a single function call invoked by the server
2020-08-03 12:42:42 +01:00
michael-bailey
d56a7209c2
Update server_profile.rs
...
+ added thread spawning.
+added channels for server communication outside of the thread.
+ added main loop process.
~ changes the tcp listener to be non blocking.
+ added loop labels to break out of.
+ impl drop for the server that signals the thread to break.
2020-08-03 12:39:50 +01:00
michael-bailey
f05323361c
Create mod.rs
...
~ coverted Commands to commands-v2
2020-08-03 12:37:30 +01:00
michael-bailey
743433ab57
Update Cargo.toml
...
+ added cursive, crossterm, zeroize, and rayon.
2020-08-03 12:36:55 +01:00
Mitchell
55e4935105
changed stream timeout value to 500 milli secs
2020-08-01 13:36:56 +01:00
Mitchell
a63fb3019c
added fix to server and unit tests
2020-08-01 12:42:54 +01:00
Mitchell
d26b2676fb
removed old outdated code
...
the code was commented out
2020-08-01 12:42:19 +01:00
Mitchell
8c2fbe17a1
added comment on stream reading issue
2020-08-01 12:41:39 +01:00
Mitchell
fc6e87c8bf
added bug fixes from unit tests
2020-07-31 20:22:05 +01:00
Mitchell
5ced20099a
fixed thread crash due to hashmap logic
...
the client thread would crash if it attempted to update all clients when only it existed in the hashmap
2020-07-31 18:38:30 +01:00
Mitchell
d91c9bfd3b
fixed thread crash due to hashmap logic
...
the client thread would crash if it attempted to update all clients when only it existed in the hashmap
2020-07-31 18:36:30 +01:00
Mitchell
7edc209fc8
added unit tests for basic commands
2020-07-31 17:26:49 +01:00
Mitchell
951ddeb754
fixed bug with map size comparision
...
when comparing the size of the hashmap that contains the params, if the size was 1, the params would be deleted. Changed to > 0.
2020-07-31 17:26:32 +01:00
Mitchell
1e4b84787a
added reading data function
2020-07-31 17:23:51 +01:00
Mitchell
3c065781ea
added unit tests for connect and info cmd
2020-07-26 13:31:21 +01:00
Mitchell
72d297eca6
added Success command in 'to_string()'
2020-07-26 13:30:56 +01:00
Mitchell
28a8ec2302
changed msg processing from string to buffer
2020-07-24 12:39:30 +01:00
Mitchell
646163b3e3
added deprecated attribute to unused methods
2020-07-24 12:22:32 +01:00
Mitchell
0ab49de27f
fixed minor warning issues
2020-07-24 11:41:47 +01:00
Mitchell
6f660517da
created new from imple for buffer
2020-07-24 11:41:19 +01:00
Mitchell
bd268d5a96
added ClientInfo, ClientUpdate functionality
2020-07-24 11:40:54 +01:00
Mitchell
4377b26d5f
corrected constant format
2020-07-24 11:40:17 +01:00
michael-bailey
4cd27856ba
Update main.rs
2020-07-21 16:55:06 +01:00
michael-bailey
d34c9580bd
Merge branch 'channel-structure' of https://github.com/mitch161/rust-chat-server into channel-structure
2020-07-21 16:55:03 +01:00
Mitch161
9dff749432
added Client command for 'to_string' conversion
...
no longer returns !error: back to the user when the client command needs to be returned from the server
2020-07-20 20:08:51 +01:00
Mitch161
cfe48835ac
added back client thread pool
2020-07-20 20:05:22 +01:00
Mitch161
52e97bbaad
added manual unlock of client hashmap
2020-07-20 19:58:41 +01:00
Mitch161
21cb46e4fb
added Request command to 'to_string' conversion
2020-07-20 19:40:54 +01:00
Mitch161
ac9a337f35
commented unused and misplaced line
2020-07-20 19:40:16 +01:00
Mitch161
f399386906
added note on transmit data bug
...
refers to a server crash issue
2020-07-20 18:21:22 +01:00
Mitch161
2827ab5c5e
constructor now returns Self
...
changed the return of the constructor from type Server to type Self
2020-07-19 21:07:23 +01:00