Jump to content

Bloxxy

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Bloxxy's Achievements

Rookie

Rookie (2/14)

  • One Year In
  • One Month Later
  • Week One Done
  • Dedicated Rare
  • First Post Rare

Recent Badges

0

Reputation

  1. I would prefer not using UDP, since I need all the packets to arrive (and in the order sent). Switching to Websocket mode is useless, since Game Guardian closes the TCP remote instantly after sending the message, so it's like making a Websocket but not sending any data and closing it instantly. I wonder why this popular modding application misses the most important feature any application should have
  2. HTTP standard on the exact same page you posted says that you should not use pipelining on post requests, and even if that's possible it would make a 4x delay from 5ms to 20ms if I combine 4 posts. And 200 is a lot, it's almost 45% useless data that doesn't help me and just makes the response harder to parse
  3. How cannot Game Guardian use external modules? I can use require for Lua modules just fine, not C though. Http is too slow in my case, I need to deliver 500 bytes and HTTP adds a 200 bytes overhead. I am running the server on a computer above the VM, but technically that still gets into the network, getting a 2ms additional delay, and HTTP makes a new socket for every request making it way too slow for my needs. Why are simple features that are needed like TCP excluded?
  4. There is no TCP api here, only some HTTP methods which are way slower than TCP and I cannot use it reliably in my project
  5. Hey, so I am trying to do TCP Requests. A older post here mentioned including "socket" or "luasocket", but it seems like these modules are not found. This is some code I tried: local socket = require("socket") -- Define the server's IP address and port local serverIP = "192.168.100.15" local serverPort = 16427 -- Create a TCP socket local client = socket.tcp() -- Connect to the server client:connect(serverIP, serverPort) -- Send data to the server local messageToSend = "Hello, server!" client:send(messageToSend) -- Receive data from the server local receivedData, err = client:receive() if receivedData then print("Received data from server: " .. receivedData) else print("Error while receiving data: " .. err) end -- Close the connection client:close()
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.