Method CreateClientNetworkDriver
CreateClientNetworkDriver<T>(T)
Helper method for creating NetworkDriver suitable for client.
The driver will use the the specified netIf
and is configured
using the internal defaults. See: GetNetworkSettings().
Declaration
public static NetworkDriverStore.NetworkDriverInstance CreateClientNetworkDriver<T>(T netIf) where T : unmanaged, INetworkInterface
Parameters
Type | Name | Description |
---|---|---|
T | netIf | the instance of a Unity.Networking.Transport.INetworkInterface to use to create the driver |
Returns
Type | Description |
---|---|
NetworkDriverStore.NetworkDriverInstance |
Type Parameters
Name | Description |
---|---|
T | the Unity.Networking.Transport.INetworkInterface type ot use |
CreateClientNetworkDriver<T>(T, NetworkSettings)
Helper method for creating NetworkDriver suitable for client.
The driver will use the specified Unity.Networking.Transport.INetworkInterface and is configured
using the provided settings
.
Declaration
public static NetworkDriverStore.NetworkDriverInstance CreateClientNetworkDriver<T>(T netIf, NetworkSettings settings) where T : unmanaged, INetworkInterface
Parameters
Type | Name | Description |
---|---|---|
T | netIf | the instance of a Unity.Networking.Transport.INetworkInterface to use to create the driver |
NetworkSettings | settings | A list of the parameters that describe the network configuration. |
Returns
Type | Description |
---|---|
NetworkDriverStore.NetworkDriverInstance |
Type Parameters
Name | Description |
---|---|
T | the Unity.Networking.Transport.INetworkInterface type ot use |