[−][src]Function ether_dream::dac::stream::connect
pub fn connect(
broadcast: &DacBroadcast,
dac_ip: IpAddr
) -> Result<Stream, CommunicationError>
Establishes a TCP stream connection with the DAC at the given address.
TCP_NODELAY
is enabled on the TCP stream in order for better low-latency/realtime
suitability. If necessary, this can be disabled via the set_nodelay
method on the returned
Stream.
Note that this does not "prepare" the DAC for playback. This must be done manually by
submitting the prepare_stream
command.