I have something like a proxy server (written in java) working between my clients and the actual video server (made in C ++). All sent clients go through this proxy server and then are redirected to the server.
It works fine, but I have some problems and I think it would be better if I could make this proxy server only to listen for client requests, and then somehow tell the server that the request was made from the client side, and that it is supposed to create a connection with the client directly.
Basically at the TCP level, what I want to do is something like this:
1- whenever a client sends a SYN to my proxy, the proxy just sends a message to the real server telling the ip and port of the client.
2- Then the server will send the appropriate SYN-ACK to the specified client, creating a direct connection between the client and the server.
Then, the proxy server should simply forward the initial requests (but no later data transfer) to the actual server. I just don't know if this is possible.
Many thanks
Nelson R. Perez
java c ++ tcp connection
Bilthon
source share