Using shorter NetAddress.From

This commit is contained in:
Garry Newman 2020-02-26 13:49:46 +00:00
parent 8b2a888feb
commit 49b55c74b8

View File

@ -96,7 +96,7 @@ public async Task NormalEndtoEnd()
// Start the client
//
Console.WriteLine( "ConnectNormal" );
var connection = SteamNetworkingSockets.ConnectNormal<TestConnectionInterface>( NetAddress.From( System.Net.IPAddress.Parse( "127.0.0.1" ), 12445 ) );
var connection = SteamNetworkingSockets.ConnectNormal<TestConnectionInterface>( NetAddress.From( "127.0.0.1", 12445 ) );
var client = connection.RunAsync();
await Task.WhenAll( server, client );