Skip to content

Sajjad-Khoshdooni/socket_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Implementation of Socket Server in Rust

This project implements a TCP socket server in Rust using the Tokio library. The server can handle different subscription methods (TRADES, ORDER, ALL) and respond accordingly.

Features

  • Handles incoming TCP connections asynchronously.
  • Supports multiple subscription methods.
  • Responds to client requests with JSON-formatted messages.

Dependencies

  • tokio: An asynchronous runtime for Rust.
  • serde and serde_json: For serializing and deserializing JSON.

Running server

cargo run 

Binding To Server

nc 127.0.0.1 8080 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages