aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes TCP Vs HTTP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "TCP Vs HTTP" Watch "TCP Vs HTTP" New topic
Author

TCP Vs HTTP

Bhaskar Selvaraju
Greenhorn

Joined: Jul 04, 2001
Posts: 29
Hi All,
I have a chat program that works fine, but its not accessible behind firewalls !!! so i am really stuck, please let me know what r the options i have and send me some code snippets if u can. Can someone pls explain HTTP TUNNELLING too?
Bhaskar
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Http tunneling is when the client and server pretend that the client is downloading a document over http, but revert to another protocol.
Client:
URL url = new URL("http://host/servlet/com.host.HttpTunnelServlet");
URLConnection uc = url.openConnection();
InputStream in = uc.getInputStream();
OutputStream out = uc.getOutputStream();
// now you are connected. do what you want
Server (com.host.HttpTunnelServlet) -- something similar to this:
public void doGet(req, resp) {
InputStream in = req.getInputStream();
PrintWriter out = resp.getWriter();
// do what I want
}
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: TCP Vs HTTP
 
Similar Threads
Creating a Profile Page/Link
get string values from Request and Session
Java Genius PLEASE SEE THIS
who can email the mukherjee'thread note to me
md5 Authentication using struts