[][src]Crate naia_socket_shared

Naia Socket Shared

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

Structs

Config

A Config object required to initialize a given Server/Client Socket

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