[−][src]Module fibers::net
Networking primitives for TCP/UDP communication.
Implementation Details
Basically, the structures in this module are simple wrapper of the mio's counterparts. The former implement futures interface to facilitate writing code for asynchronous I/O.
If a socket is not available (i.e., may block) at the time the Future::poll
method
for the corresponding future is called, it will suspend (deschedule) current fiber by invoking
the fibers::fiber::park
function.
Then it sends a request to a mio::Poll
to monitor an event that
indicates the socket becomes available.
After that, when the event happens, the fiber will be resumed and
rescheduled for next execution.
Modules
futures | Implementations of |
streams | Implementations of |
Structs
TcpListener | A structure representing a socket server. |
TcpStream | A structure which represents a TCP stream between a local socket and a remote socket. |
UdpSocket | A User Datagram Protocol socket. |