forked from IF-LK-2020/wordle
Grundgerüst der Server-Klasse
This commit is contained in:
42
WordleServer.java
Normal file
42
WordleServer.java
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* Server für das WORDLE Spiel.
|
||||||
|
*/
|
||||||
|
public class WordleServer extends Server {
|
||||||
|
|
||||||
|
publib 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 ) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void processClosingConnection( String pClientIP, int pClientPort ) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void processMessage( String pClientIP, int pClientPort, String pMessage ) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user