Function de_net::tasks::ureceiver::run

source ·
pub(super) async fn run(
    port: u16,
    _cancellation: CancellationSender,
    datagrams: Receiver<InPackageDatagram>,
    packages: Sender<InPackage>,
    delivery_handler: DeliveryHandler
)
Expand description

Handler of user datagrams, i.e. datagrams with user data targeted to higher-level users of the network protocol.

The handler runs a loop which finishes when datagrams or packages channel is closed.