Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.

Commit

Permalink
little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiX44 committed Jun 8, 2015
1 parent 7d4db52 commit cb52151
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions src/it/ksuploader/main/MainServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ public class MainServer {

private ServerSocketChannel serverSocketChannel;
public static LoadConfig config = new LoadConfig();
private static MainServer instance;
public static PrintWriter logger;

public static MainServer getInstance() {
return instance;
}

// SocketChannel socketChannel = null;
// ServerSocketChannel serverSocketChannel = null;
Expand Down Expand Up @@ -57,9 +53,6 @@ private void start() {
}
}

public void stop() {
log("Server stopped!");
}

static void log(String toPrint) {
System.out.println(toPrint);
Expand Down
3 changes: 1 addition & 2 deletions src/it/ksuploader/main/RequestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class RequestHandler implements Runnable {
private SocketChannel socketChannel;
private DataInputStream dis;
private DataOutputStream dos;
private String type;

public RequestHandler(SocketChannel socketChannel) {
this.socketChannel = socketChannel;
Expand Down Expand Up @@ -42,7 +41,7 @@ public void run() {
MainServer.log("Client Authenticated");

// Aspetto e leggo il type
type = dis.readUTF();
String type = dis.readUTF();
MainServer.log("fileType: " + type);

// Informo il client della ricezione e così parte l'upload
Expand Down

0 comments on commit cb52151

Please sign in to comment.