unix_socket_based_server_client

Streaming data over unix sockets, in Rust

Stars
4

Unix-socket based client/server

In order to dig into Szu channels, I had to dig into the workings of unix sockets.

What this repo contains

  • a small socket library to create a socket, src/socket.rs
  • a simple socket-based server that creates a socket, uses its listener, writes responses back
  • a simple socket-based client that connects to the socket, writes to the stream and read from it.

How to run

Please install Rust, it is awesome, then clone this repo and do:

cargo run --bin server

And then, in a separate terminal:

cargo run --bin client