简体   繁体   中英

Java: TCP/UDP Hole Punching Using Servlet?

Is it possible for me to implement a client/server networking model that connects via TCP hole punching using a servlet deployed on AppEngine?

If so, how do you forward the connection request from the client to the host and establish a 2-way connection that eradicates the server involvement once initiated?

The last time I need to do something similar I start using SOHT Socket over HTTP Tunneling .

Then, because the scope of the project was a didactic scope, I also realize my own implementation of a similar logic, where the server part was a very simple Servlet .

However you can use directly that library or study its sources to understand how it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM