rt_stub_add_map
Description
The rt_stub_add_map function is used to add a port mapping. The Stub will listen on 127.0.0.1:local_port, and connections made to this port will be forwarded to remote_host:remote_port via RTTP.
Syntax:
int rt_stub_add_map(unsigned short local_port, const char* remote_host, unsigned short remote_port);
Parameters:
local_port: The local TCP port number where the Stub will listen.
remote_host: The remote address (IP address or hostname) of the destination host.
remote_port: The remote port number of the destination host.
Return Value:
Returns 0 on success; returns a non-zero error code on failure.