You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-15 22:56:30 +09:00
MasterServer sample fixed
This commit is contained in:
@@ -93,7 +93,6 @@
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
|
||||
@@ -51,11 +51,11 @@ namespace MSClient
|
||||
NativeMethods.AppendText(m_mainForm.richTextBox1, inc.ReadString());
|
||||
break;
|
||||
case NetIncomingMessageType.UnconnectedData:
|
||||
if (inc.SenderEndpoint.Equals(m_masterServer))
|
||||
if (inc.SenderEndPoint.Equals(m_masterServer))
|
||||
{
|
||||
// it's from the master server - must be a host
|
||||
IPEndPoint hostInternal = inc.ReadIPEndpoint();
|
||||
IPEndPoint hostExternal = inc.ReadIPEndpoint();
|
||||
IPEndPoint hostInternal = inc.ReadIPEndPoint();
|
||||
IPEndPoint hostExternal = inc.ReadIPEndPoint();
|
||||
|
||||
m_hostList.Add(new IPEndPoint[] { hostInternal, hostExternal });
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace MSClient
|
||||
break;
|
||||
case NetIncomingMessageType.NatIntroductionSuccess:
|
||||
string token = inc.ReadString();
|
||||
MessageBox.Show("Nat introduction success to " + inc.SenderEndpoint + " token is: " + token);
|
||||
MessageBox.Show("Nat introduction success to " + inc.SenderEndPoint + " token is: " + token);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user