Creates a "server" socket that listens for clients to connect to by
calling ConnectByIPAddress, over ordinary UDP (IPv4 or IPv6)
You must select a specific local port to listen on and set it
the port field of the local address.
Usually you will set the IP portion of the address to zero (SteamNetworkingIPAddr::Clear()).
This means that you will not bind to any particular local interface (i.e. the same
as INADDR_ANY in plain socket code). Furthermore, if possible the socket will be bound
in "dual stack" mode, which means that it can accept both IPv4 and IPv6 client connections.
If you really do wish to bind a particular interface, then set the local address to the
appropriate IPv4 or IPv6 IP.
If you need to set any initial config options, pass them here. See
SteamNetworkingConfigValue_t for more about why this is preferable to
setting the options "immediately" after creation.
When a client attempts to connect, a SteamNetConnectionStatusChangedCallback_t
will be posted. The connection will be in the connecting state.
Creates a "server" socket that listens for clients to connect to by calling ConnectByIPAddress, over ordinary UDP (IPv4 or IPv6)
You must select a specific local port to listen on and set it the port field of the local address.
Usually you will set the IP portion of the address to zero (SteamNetworkingIPAddr::Clear()). This means that you will not bind to any particular local interface (i.e. the same as INADDR_ANY in plain socket code). Furthermore, if possible the socket will be bound in "dual stack" mode, which means that it can accept both IPv4 and IPv6 client connections. If you really do wish to bind a particular interface, then set the local address to the appropriate IPv4 or IPv6 IP.
If you need to set any initial config options, pass them here. See SteamNetworkingConfigValue_t for more about why this is preferable to setting the options "immediately" after creation.
When a client attempts to connect, a SteamNetConnectionStatusChangedCallback_t will be posted. The connection will be in the connecting state.