Function erlang_port::stdio [−][src]
pub fn stdio(
packet_size: PacketSize
) -> IOPort<PacketReceiver<Stdin>, PacketSender<Stdout>>
Creates an IOPort using stdin & stdout with the specified packet size.
This should be used with ports that have been opened in Erlang/Elixir with
the :use_stdio
and {:packet, N}
options, where N matches packet_size.
Note: at present we don't do any locking of the underlying stdin or stdout streams, so you should only call this once in your port. This may be changed in the future...