1
0
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:
lidgren
2012-09-13 07:10:52 +00:00
parent fd224b88d8
commit af4f77a8a5
5 changed files with 12 additions and 19 deletions

View File

@@ -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>

View File

@@ -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;
}
}