Terraria.Netplay.StopListening C# (CSharp) Method

StopListening() private static method

private static StopListening ( ) : void
return void
        private static void StopListening()
        {
            Netplay.TcpListener.StopListening();
        }

Usage Example

Exemplo n.º 1
0
 private static void CleanupServer()
 {
     Netplay.StopListening();
     try
     {
         Netplay.ClosePort(Netplay.ListenPort);
     }
     catch
     {
     }
     for (int index = 0; index < 256; ++index)
     {
         Netplay.Clients[index].Reset();
     }
     if (Main.menuMode != 15)
     {
         Main.netMode  = 0;
         Main.menuMode = 10;
         WorldFile.SaveWorld();
         Main.menuMode = 0;
     }
     else
     {
         Main.netMode = 0;
     }
     Main.myPlayer = 0;
 }
All Usage Examples Of Terraria.Netplay::StopListening