[][src]Module d3_components::network

Enums

NetCmd

This is where d3 meets Tcp (Udp to follow). The Network leans heavily upon Mio to provide the foundation for interacting with the network. The d3 network provides an additional abstraction to adapt it for d3 machines and encapsulate Mio.

Functions

get_network_sender

Obtain the network's sender. The returned sender is a clone, that you are free to use, further clone, or drop. Tip: cache the result and clone it when you need to send it.

start_network

Start the network. Starting does not perform any network bindings, it prepares the network to accept bindings.

stop_network

Stop the network. Stopping will close all network connections and listeners and no further network activity is allowed.

Type Definitions

NetConnId

A network connection is always expressed as a NetConnId and identifies a specific network connection.

NetSender

Shorthand for a sender, that can be sent NetCmd instructions.