[−][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:
- Receive packets and send them to either the sender or the receiver through a channel
- Take outgoing packets and send them on the socket