Making "proxy-server" for GTA2 Networking
Posted: 29 Nov 2011, 15:00
As I know GTA2 uses two-way connections (client and server) and requires forwarded ports to make connections from out outside are possible. Schematic of connections can be figured like this:
But if we can make something like "proxy-server", one-way connection can be achieved, like this:
"Proxy" means program that open two-side connection(s), one for GTA2 (localhost), one for opposite side (other proxy). After connections be established, program just transfer incoming buffers from one side to outcoming buffer to other side. As a result, traffic will be transfered like at "direct" connection.
By using only TCP protocol in proxy-proxy connections we can "transform" GTA2's UDP traffic to TCP traffic (no package loss), so number of "out of sync" lags probably will be reduced.
What are you thinking about this?
I'm a C programmer, I'm now learning winsock and I think I can make this program, but I don't have any program that can analyse gta2.exe's connections and I absolutely don't know what kind of connections gta2.exe establishes. So I need your help and I offer to develop this thing together.
But if we can make something like "proxy-server", one-way connection can be achieved, like this:
"Proxy" means program that open two-side connection(s), one for GTA2 (localhost), one for opposite side (other proxy). After connections be established, program just transfer incoming buffers from one side to outcoming buffer to other side. As a result, traffic will be transfered like at "direct" connection.
By using only TCP protocol in proxy-proxy connections we can "transform" GTA2's UDP traffic to TCP traffic (no package loss), so number of "out of sync" lags probably will be reduced.
What are you thinking about this?
I'm a C programmer, I'm now learning winsock and I think I can make this program, but I don't have any program that can analyse gta2.exe's connections and I absolutely don't know what kind of connections gta2.exe establishes. So I need your help and I offer to develop this thing together.