[−][src]Crate naia_socket_shared
Naia Socket Shared
Common data types shared between Naia Server Socket & Naia Client Socket
Modules
link_condition_logic | Logic shared between client & server sockets related to simulating network conditions |
Structs
Instant | Represents a specific moment in time |
LinkConditionerConfig | Contains configuration required to initialize a LinkConditioner |
PacketReader | Contains an underlying byte payload, and provides a Cursor into that payload |
Random | Container for cross-platform Random methods |
Ref | A reference abstraction that can handle single-threaded and multi-threaded environments |
TimeQueue | A queue for items marked by time, will only ever pop items from the queue if the time |
Timer | 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. |
Timestamp | A Timestamp for a moment in time that can be read/written to/from a byte stream |
Functions
find_available_port | Given an IPv4 Address, attempt to find an available port on the current host |
find_my_ip_address | Helper method to find local IP address, if possible |