You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 15:46:33 +09:00
Missing project added; various code cleanups
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Lidgren.Network
|
||||
/// </summary>
|
||||
public void DiscoverLocalPeers(int serverPort)
|
||||
{
|
||||
NetOutgoingMessage om = CreateMessage();
|
||||
NetOutgoingMessage om = CreateMessage(0);
|
||||
SendUnconnectedLibraryMessage(om, NetMessageLibraryType.Discovery, new IPEndPoint(IPAddress.Broadcast, serverPort));
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Lidgren.Network
|
||||
/// </summary>
|
||||
public bool DiscoverKnownPeer(IPEndPoint endpoint)
|
||||
{
|
||||
NetOutgoingMessage om = CreateMessage();
|
||||
NetOutgoingMessage om = CreateMessage(0);
|
||||
SendUnconnectedLibraryMessage(om, NetMessageLibraryType.Discovery, endpoint);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user