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
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
Mitch161
700c093c6b
made server and details statics/consts
2020-07-19 21:05:09 +01:00
Mitch161
0e6d141704
added new crate for statics
2020-07-19 21:04:41 +01:00
Mitch161
f7b827b15d
removed unused imports
2020-07-19 18:04:22 +01:00
Mitch161
240f8fa671
made self static
2020-07-19 17:55:54 +01:00
Mitch161
73b732fbe0
made Server static
2020-07-19 17:55:34 +01:00
Mitch161
7ed9e469fc
changed String to 'static str
...
The server details shouldnt be able to be change and should exist for the whole execution of the program, this can be changed by reverting back to the old format
2020-07-19 17:55:10 +01:00
Mitch161
f4b9bdbb51
changed self pointer to static
2020-07-18 20:36:59 +01:00
Mitch161
9d234b2393
soon to be deleted code
2020-07-18 20:36:20 +01:00
Mitch161
6df560c525
added temp lifetimes
2020-07-18 20:33:09 +01:00
Mitch161
0677a95b61
fixed hashmap formatting
2020-07-18 15:04:45 +01:00
Mitch161
79e6e425dc
added client command update
...
all clients will now be upadeted with the client command of a new connecting client
2020-07-17 20:49:25 +01:00
Mitch161
1ebde0f0ed
added check for success return message
2020-07-17 20:23:38 +01:00
michael-bailey
b62d32dcd5
Merge branch 'channel-structure' of https://github.com/mitch161/rust-chat-server into channel-structure
2020-07-17 19:51:57 +01:00
michael-bailey
812986fa32
fixed trait issues
2020-07-17 19:51:54 +01:00
michael-bailey
bfd0ee00a8
Update lib.rs
2020-07-17 19:50:37 +01:00
Mitch161
7c1551341d
changed format string to use to string method
2020-07-17 19:40:30 +01:00
Mitch161
4031edbf9e
added beginning to !client: command
...
ive left some comments along side the code as im uncertain as to how messages are being handled now
2020-07-17 19:29:26 +01:00
michael-bailey
226bea4623
fixed lifetime and naming issues
2020-07-16 22:16:16 +01:00
Mitchell
8b78352cc5
added tmp folders and files for V2 system
2020-07-13 21:53:03 +01:00
Mitchell
58577f1298
added commands V2
...
this new enum will replace all old enums making communication between the client and server significantly easier
2020-07-13 21:52:17 +01:00
Mitchell
fbf4e7ddbf
added command functions for channels
2020-07-13 21:51:23 +01:00
Mitchell
e6f1b22782
moved infinite loop back to server struct
2020-07-13 21:50:13 +01:00
Mitchell
69f192393d
tmp fix with channel system
...
removed the sync thread system where every client would wait for each client to finish. New system is completely based of channels and messages sent between threads
2020-07-12 21:47:32 +01:00
Mitchell
1276aaa955
changed ip address and port
2020-07-04 14:03:09 +01:00
Mitch161
c3c1dfb342
Merge pull request #1 from Mitch161/struct-rework
...
Updated rework of files and folders
2020-07-01 12:54:37 +01:00
Mitchell
1d844ff57d
added concurrent libs
2020-06-30 14:26:06 +01:00
Mitchell
520d2b91a0
simplified to starting the server
...
core body of code was moved into the server struct, this function now simply starts the server and defines the concurrent hashmap and queue
2020-06-30 14:25:19 +01:00
Mitchell
d69f8d32fd
temp file for core server actions
2020-06-30 14:24:29 +01:00
Mitchell
889f9899da
added struct for server functionality
...
this struct handles all the servers processing and functionality, as well as details about the server
2020-06-30 14:24:09 +01:00