update readme.md
This commit is contained in:
3 files changed
+16
-4
No files matched your search
@@ -50,7 +50,9 @@ to manage the servers a cli is available
|
||||
lrzip
|
||||
|
||||
### library used
|
||||
for this project I used the following dependencies :
|
||||
for this project I used the following libraries :
|
||||
- bollard: to interract with docker
|
||||
- diesel: interract with a sqlite database
|
||||
- clap: to parse the command line arguments
|
||||
- tokio: async
|
||||
and others for things like time, json and regex
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/07 17:23:09 by tomoron #+# #+# */
|
||||
/* Updated: 2026/06/13 17:43:46 by tomoron ### ########.fr */
|
||||
/* Updated: 2026/07/22 17:50:17 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -29,6 +29,13 @@ use regex::Regex;
|
||||
use chrono::Utc;
|
||||
|
||||
|
||||
enum ClientState {
|
||||
PreHandshake,
|
||||
Status,
|
||||
Login,
|
||||
Proxied
|
||||
}
|
||||
|
||||
pub struct Client {
|
||||
pub in_stream: TcpStream,
|
||||
|
||||
@@ -37,12 +44,13 @@ pub struct Client {
|
||||
pub out_stream: Option<TcpStream>,
|
||||
pub handshake: Option<Handshake>,
|
||||
|
||||
pub closed: bool,
|
||||
pub state: ClientState,
|
||||
|
||||
pub closed: bool,
|
||||
pub server: Option<Result<Servers,diesel::result::Error>>,
|
||||
|
||||
pub db_pool: DbPool,
|
||||
pub docker: Docker
|
||||
pub docker: Docker,
|
||||
}
|
||||
|
||||
impl Client {
|
||||
@@ -57,6 +65,8 @@ impl Client {
|
||||
|
||||
closed: false,
|
||||
|
||||
state: ClientState::PreHandshake,
|
||||
|
||||
server: None,
|
||||
|
||||
db_pool: pool,
|
||||
|
||||
Whitespace-only changes.
Reference in new issue
Block a user