UDPConnection GetConnection Method (ConnectionInfo, UDPOptions, Boolean, Boolean)NetworkComms.Net Help
Create a UDP connection with the provided connectionInfo. If there is an existing connection that is returned instead. If a new connection is created it will be registered with NetworkComms and can be retrieved using GetExistingConnection(ConnectionInfo) and overrides.

Namespace: NetworkCommsDotNet.Connections.UDP
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static UDPConnection GetConnection(
	ConnectionInfo connectionInfo,
	UDPOptions level,
	bool listenForReturnPackets = true,
	bool establishIfRequired = true
)

Parameters

connectionInfo
Type: NetworkCommsDotNet ConnectionInfo
ConnectionInfo to be used to create connection
level
Type: NetworkCommsDotNet.Connections.UDP UDPOptions
The UDP level to use for this connection
listenForReturnPackets (Optional)
Type: OnlineSystem Boolean
If set to true will ensure that reply packets are handled
establishIfRequired (Optional)
Type: OnlineSystem Boolean
Will establish the connection, triggering connection establish delegates if a new connection is returned

Return Value

Type: UDPConnection
Returns a UDPConnection
See Also