- var connectedIpPort = $"{peer.GetConnectedHost()}:{peer.GetConnectedPort()}";
- GD.Print($"[HTTP] {connectedIpPort} is connecting...");
- try
- {
- ...
- GD.Print($"[HTTP] {connectedIpPort} connected.");
- ...
- GD.Print($"[HTTP] {connectedIpPort} requests {mapId}...");
- ...
- byte[] compressedData = ZlibStream.CompressBuffer(data);
- peer.PutData(compressedData);
- peer.DisconnectFromHost() // An existing connection was forcibly closed by the remote host
- }
- finally
- {
- try { if (peer.GetStatus() == StreamPeerTcp.Status.Connected) peer.DisconnectFromHost(); } catch (Exception) { }
- GD.Print($"[HTTP] {connectedIpPort} disconnected.");
- }
Untitled
Posted by Anonymous on Fri 27th Jun 2025 00:04
raw | new post
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.
kpaste.net RSS