mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
Using shorter NetAddress.From
This commit is contained in:
parent
8b2a888feb
commit
49b55c74b8
@ -96,7 +96,7 @@ namespace Steamworks
|
|||||||
// Start the client
|
// Start the client
|
||||||
//
|
//
|
||||||
Console.WriteLine( "ConnectNormal" );
|
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();
|
var client = connection.RunAsync();
|
||||||
|
|
||||||
await Task.WhenAll( server, client );
|
await Task.WhenAll( server, client );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user