Function mpstthree::transport::udp::fork::fork_udp[][src]

pub fn fork_udp<S, P>(
    p: P,
    bind: &str,
    connect: &str
) -> Result<(JoinHandle<()>, S::Dual, UdpSocket), Box<dyn Error>> where
    S: Session + 'static,
    P: FnOnce(S, UdpSocket) -> Result<(), Box<dyn Error>> + Send + 'static, 
This is supported on crate features transport or transport_udp only.
Expand description

Creates a child process, and a session with two dual endpoints of type S and S::Dual. The first endpoint is given to the child process. Returns the second endpoint and the created bound and connected socket.

This function is available only if MultiCrusty is built with the "transport" feature or the "transport_udp" feature.