Skip to content
/ mrpump Public

A simple tokio based tls server and client spawner with little boilder plate code

License

Notifications You must be signed in to change notification settings

dpmkl/mrpump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mr Pump

MrPump is a set of two functions that spawn a tokio-rustls based client or server. Each runs the handler, passed as argument, for every accepted server session or the client session. The handler returns directly to the underlying future.

    pub fn server<F>(addr: SocketAddr, tls_config: ServerConfig, acl: AccessControl, handler: F)
    where
        F: Fn(TlsStream<TcpStream, ServerSession>) -> Result<(), std::io::Error>
            + Send
            + Sync
            + 'static

⚠️ This is personal playground toy project, nothing but bugs can be guaranteed! ⚠️

About

A simple tokio based tls server and client spawner with little boilder plate code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages