Commit f674d6ce authored by Rakhmatullah Yoga Sutrisna's avatar Rakhmatullah Yoga Sutrisna
Browse files

clientHandler

parent ae1696bb
......@@ -7,6 +7,7 @@
package grandquestserver;
import java.io.IOException;
import java.net.ServerSocket;
import java.sql.SQLException;
/**
......@@ -25,7 +26,8 @@ public class GrandQuestServer {
*/
public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
int port = 8000;
Thread t = new Server(port);
ServerSocket serverSock = new ServerSocket(port);
Thread t = new ClientHandler(serverSock);
t.start();
//DBHandler database = new DBHandler();
//database.addInventory("ardi", 2);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment