Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b5b55137ba6e73b6a7f23d1a0dba9fa8ceae7f58 2 parents ee25f80 + 155338b
Erlend Oftedal authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  proxy-backend/malaria/MalariaServer.java
3  proxy-backend/malaria/MalariaServer.java
View
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.