forked from IF-LK-2020/wordle
Grundgerüst der Server-Klasse
This commit is contained in:
parent
57ddc1dbe6
commit
5948e1c26b
|
@ -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 ) {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue