Struct ether_dream_dac_emulator::listener::Listener
[−]
[src]
pub struct Listener { /* fields omitted */ }
Listens for and handles requests to connect with the DAC.
Methods
impl Listener
[src]
pub fn new(dac: Addressed, output_frame_rate: u32) -> Result<Self>
[src]
Create a new listener for handling stream connection requests.
pub fn accept(&mut self) -> Result<(ActiveStream, SocketAddr)>
[src]
Waits for an incoming TCP connection request and connects.
The Listener will only accept one Stream at a time. If this method is called while
an accepted stream still exists, this will block until that Stream is close
d or
drop
ped.