From 5948e1c26b05cd869ef1e664f5a4ac2c062ff7f4 Mon Sep 17 00:00:00 2001 From: "J. Neugebauer" Date: Sun, 6 Feb 2022 22:10:10 +0100 Subject: [PATCH] =?UTF-8?q?Grundger=C3=BCst=20der=20Server-Klasse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WordleServer.java | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 WordleServer.java diff --git a/WordleServer.java b/WordleServer.java new file mode 100644 index 0000000..ac0fd17 --- /dev/null +++ b/WordleServer.java @@ -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 ) { + + } + +}