-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientHandler.java
More file actions
35 lines (26 loc) · 791 Bytes
/
Copy pathClientHandler.java
File metadata and controls
35 lines (26 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package node.server.main;
import java.io.IOException;
import java.net.Socket;
public class ClientHandler{
// private static Map<String, String> params;
// private static Map<String, String> execParams;
// private static TaskQueue taskqueue = new TaskQueue();
String clientParamsIn = null;
protected static Socket client;
private ClientReceiver clReceive;
private Client cl;
public ClientHandler(Socket socket) throws IOException{
client = socket;
cl = new Client();
cl.setClient(client);
clientParamsIn = cl.receiveStringFromClient();
}
/*
* Method clientExecute
* execute request from client and run client receiver thread
*/
public void clientExecute() throws IOException{
clReceive = new ClientReceiver(clientParamsIn);
clReceive.start();
}
}