Expand description
Devices behind a real file descriptor: a TCP serial bridge and (unix) a PTY pair.
Structs§
Traits§
- Io
- The device side of a port: a PTY master or the TCP peer.
Functions§
- accept
- The connection the host opened to
listener(a blocking one, astcp_listenergives; it is blocking again afterwards). - pty
- A new PTY pair.
- recv_
until - Read from the device side until
doneholds for everything read; panics afterWAIT, and at once when the host closed the connection for good. - serve
- Run
modemon the device side until theServeris dropped, or the host closed a connection that does not come back (a TCP bridge; a PTY is served again when it is reopened). It sets the timeouts ofio. - tcp_
listener - A TCP serial bridge: the listener and the
tcp://path to open.