Browse files

Merge branch 'master' of git@github.com:eoftedal/MalaRIA-Proxy

  • Loading branch information...
2 parents ee25f80 + 155338b commit b5b55137ba6e73b6a7f23d1a0dba9fa8ceae7f58 Erlend Oftedal committed May 14, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 proxy-backend/malaria/MalariaServer.java
View
3 proxy-backend/malaria/MalariaServer.java
@@ -42,6 +42,7 @@ private MalariaServer(String hostname, int port) {
public void serveSocket(Socket client, ServerSocket proxySocket, String hostname, int port) {
try {
+ System.out.println(client.getInetAddress().getHostAddress());
PrintStream clientOut = new PrintStream(client.getOutputStream());
InputStream clientIn = client.getInputStream();
System.out.println("Client connected");
@@ -70,7 +71,7 @@ public void serveSocket(Socket client, ServerSocket proxySocket, String hostname
boolean done = false;
int dl = -1;
int read = 0;
- System.out.println("Ready to read...");
+ System.out.println("Waiting for response from client...");
ArrayList<byte[]> fullBuffer = new ArrayList<byte[]>();
while (!done) {
byte[] buffer = new byte[4096];

0 comments on commit b5b5513

Please sign in to comment.