Crate naia_socket_shared[][src]

Expand description

Naia Socket Shared

Common data types shared between Naia Server Socket & Naia Client Socket


Logic shared between client & server sockets related to simulating network conditions


Represents a specific moment in time

Contains configuration required to initialize a LinkConditioner

Contains an underlying byte payload, and provides a Cursor into that payload

Container for cross-platform Random methods

Contains Config properties which will be shared by Server and Client sockets

A queue for items marked by time, will only ever pop items from the queue if the time

A Timer with a given duration after which it will enter into a “Ringing” state. The Timer can be reset at an given time, or manually set to start “Ringing” again.

A Timestamp for a moment in time that can be read/written to/from a byte stream


Helper method to find local IP address, if possible