wordle/WordleServer.java

43 lines
938 B
Java

/**
* Server für das WORDLE Spiel.
*/
public class WordleServer extends Server {
public static final int DEFAULT_PORT = 1000;
public static void main( String[] args ) {
new WordleServer();
}
private DatabaseConnector db;
public WordleServer() {
this(DEFAULT_PORT);
}
public WordleServer( int pPort ) {
super(pPort);
db = new DatabaseConnector("", 0, "wordle.db", "", "");
}
@Override
public void processNewConnection( String pClientIP, int pClientPort ) {
System.out.println("New connection: " + pClientPort);
}
@Override
public void processClosingConnection( String pClientIP, int pClientPort ) {
System.out.println("Closed connection: " + pClientPort);
}
@Override
public void processMessage( String pClientIP, int pClientPort, String pMessage ) {
System.out.println("Message: " + pMessage);
}
}