[−][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 |
random | Cross-platform random number generation utility functions |
Structs
Instant | Represents a specific moment in time |
LinkConditionerConfig | Contains configuration required to initialize a LinkConditioner |
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. |
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 |