#in-memory #sockets

memsocket

An asynchronous in-memory socket-like interface

4 releases

Uses old Rust 2015

0.1.3 Jun 10, 2018
0.1.2 Jun 9, 2018
0.1.1 Jun 9, 2018
0.1.0 Jun 9, 2018

#29 in #socket


Used in hyper-stub

MPL-2.0 license

9KB
158 lines

memsocket

An asynchronous socket-like interface for Rust, for when you want clients and servers to be able to communicate entirely in memory.


lib.rs:

memsocket provides a asynchronous socket-like interface for connecting clients and servers in-memory.

The bounded and unbounded methods (analogous to bounded and unbounded Channels) return a pair of objects, both of which are AsyncRead and AsyncWrite. Data written to one can be read from the other, and vice versa, thus emulating a socket interface.

Dependencies

~3.5MB
~47K SLoC