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.UDPAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
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: System Boolean
If set to true will ensure that reply packets are handled
- establishIfRequired (Optional)
- Type: System Boolean
Will establish the connection, triggering connection establish delegates if a new connection is returned
Return Value
Type: UDPConnectionReturns a UDPConnection
See Also