pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Fri 27th Jun 2025 00:04
raw | new post

  1. var connectedIpPort = $"{peer.GetConnectedHost()}:{peer.GetConnectedPort()}";
  2. GD.Print($"[HTTP] {connectedIpPort} is connecting...");
  3.  
  4. try
  5. {
  6.         ...
  7.  
  8.         GD.Print($"[HTTP] {connectedIpPort} connected.");
  9.  
  10.         ...
  11.  
  12.         GD.Print($"[HTTP] {connectedIpPort} requests {mapId}...");
  13.  
  14.         byte[] data = new byte[4_194_304];
  15.  
  16.         ...
  17.  
  18.         byte[] compressedData = ZlibStream.CompressBuffer(data);
  19.         peer.PutData(compressedData);
  20.  
  21.         peer.DisconnectFromHost() // An existing connection was forcibly closed by the remote host
  22. }
  23. finally
  24. {
  25.         try { if (peer.GetStatus() == StreamPeerTcp.Status.Connected) peer.DisconnectFromHost(); } catch (Exception) { }
  26.  
  27.         GD.Print($"[HTTP] {connectedIpPort} disconnected.");
  28. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at