[][src]Function srt::tokio::create_bidrectional_srt

pub fn create_bidrectional_srt<T>(sock: T, conn: Connection) -> SrtSocket where
    T: Stream<Item = (Packet, SocketAddr)> + Sink<(Packet, SocketAddr), Error = Error> + Send + Unpin + 'static, 

This spawns two new tasks:

  1. Receive packets and send them to either the sender or the receiver through a channel
  2. Take outgoing packets and send them on the socket