/// <summary> /// Creates a new <see cref="Network.UdpConnection"/>. /// </summary> /// <returns>The created <see cref="Network.UdpConnection"/>.</returns> protected virtual async Task <Tuple <UdpConnection, ConnectionResult> > CreateUdpConnection() => await ConnectionFactory.CreateUdpConnectionAsync(tcpConnection);
/// <summary> /// Creates a new <see cref="Network.TcpConnection"/>. /// </summary> /// <returns>The created <see cref="Network.TcpConnection"/>.</returns> protected virtual async Task <Tuple <TcpConnection, ConnectionResult> > CreateTcpConnection() => await ConnectionFactory.CreateTcpConnectionAsync(IPAddress, Port);