public static void Play(string ServerName, string LoginName, string Password, int Port, Strive.Network.Messages.NetworkProtocolType Protocol, IWin32Window RenderTarget) { userName = LoginName; password = Password; protocol = Protocol; CurrentServerConnection.protocol = protocol; Log.Info("Connecting to " + ServerName + ":" + Port); CurrentServerConnection.Start(new IPEndPoint(Dns.GetHostByName(ServerName).AddressList[0], Port)); }
public static void Play(string ServerName, string LoginName, string Password, int Port, Strive.Network.Messages.NetworkProtocolType Protocol, IWin32Window RenderTarget) { userName = LoginName; password = Password; protocol = Protocol; CurrentServerConnection.protocol = protocol; Log.Info( "Connecting to " + ServerName + ":" + Port ); CurrentServerConnection.Start( new IPEndPoint( Dns.GetHostByName( ServerName ).AddressList[0], Port ) ); }