Commit Graph
47 Commits
Author SHA1 Message Date
Sebastian Lenzlinger 4557b4801b Client chatListener now throws an IO exception of the chatMSg from the server is null. 2022-04-08 16:15:04 +02:00
Sebastian Lenzlinger 968cb94f21 Now the client disconnects if:
1. no pingback recieved
2. isConnected has already been set to false
In this case it looks to be a case where the client isn't responding correctly and the server may close the connection. Added a debog log statement at the respective place.
2022-04-08 16:12:19 +02:00
Sebastian Lenzlinger f57889431d minor change to addPlayer() method 2022-04-08 15:45:35 +02:00
Sebastian Lenzlinger 9e112b493a Test commit zum schauen ob meine Commits wieder richtig zugeordnet werden. 2022-04-08 15:37:08 +02:00
Sebastian Lenzlinger 15db9e4eb9 Some fields and methods where non-static and I changed them to static. 2022-03-26 14:46:05 +01:00
Sebastian Lenzlinger a244903fbb Finnished Dokumenting ClientMsgDecoder.java and removed
unused imports.
2022-03-26 14:11:14 +01:00
Sebastian Lenzlinger edfceb0048 Added Some javadoc to ClientMsgDecoder.java to explain
the use of the class.
2022-03-26 13:39:51 +01:00
Sebastian Lenzlinger 46ee78d298 Further work on CommandExecuter and adjustments to NightServerProtocol. 2022-03-26 13:32:27 +01:00
Sebastian Lenzlinger 8916d7f8b9 Merge remote-tracking branch 'origin/master' 2022-03-26 13:14:53 +01:00
Sebastian Lenzlinger b2d725f4c3 Finnished ClientMsgDecoder!
last thing todo is implement
the execution of the input.
2022-03-26 13:14:36 +01:00
Sebastian Lenzlinger 9b1faa6ce1 Reconsile changes accross Client utility classes 2022-03-26 11:35:51 +01:00
Sebastian Lenzlinger 8f0ccbfa36 Fixed InputToProtocolMap to now contain a encoding map from client input to protocol msg and a set of legal client inputs. 2022-03-26 10:53:22 +01:00
Sebastian Lenzlinger 3f05121925 added "to" in NTtB doc comment... 2022-03-26 10:10:51 +01:00
Sebastian Lenzlinger 5368679933 Added description to NTtBFormatMsg 2022-03-25 14:48:18 +01:00
Sebastian Lenzlinger 3575c2010c deleted unused classes
work on:
NTtBFormatMsg
ClientMsgDecoder
Notice: no correct response is generated yet!
2022-03-25 14:44:47 +01:00
Sebastian Lenzlinger 2b10ff3294 Put the enum NTtBProtocol into the NightTrainProtocol class to have a authority class to validate and keep track of legal commands. 2022-03-25 13:12:03 +01:00
Sebastian Lenzlinger 846d0a8187 Noticed enums can be treated as clases to an extent so added a HashSet that accociates strings with Enum fields of the Protocol.
ProtocolValidator might become redundant!
2022-03-25 12:50:57 +01:00
Sebastian Lenzlinger 30986d2d86 Added ProtocolValidator class
added MSGRS command (message recieved, sent for server to client after recieving a msg with what was recieved as aprameters) to NTtBCommands
continued work on ClientMsgDecoder
2022-03-25 12:17:42 +01:00
Sebastian Lenzlinger 208b0d6586 addded ClientMsgDecoder class and a NoCommmandTokenException class 2022-03-25 11:58:37 +01:00
Sebastian Lenzlinger 90728e3833 Updates to various TODOs 2022-03-25 11:42:24 +01:00
Sebastian Lenzlinger 03d4942552 TODO in CLient: automate/hide connecting sequence in Client Constructor.
Added Comment to ClientHandler that the constructor atm implements connecting logic.
2022-03-25 11:27:41 +01:00
Sebastian Lenzlinger 04df8806cd Added some TODOs in Client.java 2022-03-24 15:57:53 +01:00
Sebastian Lenzlinger 3c89b60592 Clean up. 2022-03-24 15:49:05 +01:00
Sebastian Lenzlinger 65404c210b Merge remote-tracking branch 'origin/master' 2022-03-24 15:37:00 +01:00
Sebastian Lenzlinger dd898c1742 Implemented NTtBProtocolParser.java.
Still needs to be tested.
2022-03-24 15:36:50 +01:00
Sebastian Lenzlinger 532159d466 Updates NTtBCommands, that defines the NTtB Protocol, to include which commands mean what. Added Ping/pong classes where Pinging and Ping-Handling could be implemented. Tried to define useful interfaces. Added Some Command Classes, unsure if they will be needed. 2022-03-24 12:53:30 +01:00
Sebastian Lenzlinger 454f8331c7 Irrelevant change to NTtBFormatMsg constructor 2022-03-23 19:11:50 +01:00
Sebastian Lenzlinger 347984d0db Merge remote-tracking branch 'origin/master' 2022-03-23 19:07:53 +01:00
Sebastian Lenzlinger ccf36dff19 Merge remote-tracking branch 'origin/master' 2022-03-22 15:47:14 +01:00
Sebastian Lenzlinger e8157a6a91 Wiiter mit Client/Server, minor changes 2022-03-22 15:47:07 +01:00
Sebastian Lenzlinger 59a92fa145 Last Changes for Today (SL) 2022-03-21 22:51:38 +01:00
Sebastian Lenzlinger 5f01e494f4 Client Server w/ Group-Chat. 2022-03-21 22:44:29 +01:00
Sebastian Lenzlinger 4fcd68fef5 What am I doing... 2022-03-21 20:44:51 +01:00
Sebastian Lenzlinger 371efdf89c Renamed Client.java to ClientThread.java 2022-03-21 19:55:25 +01:00
Sebastian Lenzlinger fee41d1ef7 Merge remote-tracking branch 'origin/master' 2022-03-21 13:43:29 +01:00
Sebastian Lenzlinger c2676caf60 Added Client Server Skeleton 2022-03-21 13:43:15 +01:00
Sebastian Lenzlinger e79adc0e61 Added Client Server Skeleton 2022-03-21 13:42:42 +01:00
Sebastian f70581b267 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	build/reports/tests/test/classes/ch.unibas.dmi.dbis.cs108.example.HelloWorldTest.html
2022-03-14 13:52:53 +01:00
Sebastian 234ec707f7 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	build/reports/tests/test/classes/ch.unibas.dmi.dbis.cs108.example.HelloWorldTest.html
#	build/reports/tests/test/index.html
#	build/reports/tests/test/packages/ch.unibas.dmi.dbis.cs108.example.html
#	build/test-results/test/TEST-ch.unibas.dmi.dbis.cs108.example.HelloWorldTest.xml
#	build/test-results/test/binary/results.bin
2022-03-14 13:52:25 +01:00
Sebastian 414ca85bed Merge remote-tracking branch 'origin/master'
# Conflicts:
#	build/reports/tests/test/classes/ch.unibas.dmi.dbis.cs108.example.HelloWorldTest.html
#	build/reports/tests/test/index.html
#	build/reports/tests/test/packages/ch.unibas.dmi.dbis.cs108.example.html
#	build/test-results/test/TEST-ch.unibas.dmi.dbis.cs108.example.HelloWorldTest.xml
#	build/test-results/test/binary/results.bin
2022-03-14 13:43:47 +01:00
Sebastian efd5c67144 Added my name to CONTRIBUTORS.txt 2022-03-14 13:42:28 +01:00
Sebastian 6c7bbc0df7 Added my name to CONTRIBUTORS.txt 2022-03-14 12:51:59 +01:00
Sebastian 31e532c8f2 Merge branch 'master' of ssh://git.scicore.unibas.ch:2222/cs108-fs22/Gruppe-8 2022-03-14 12:18:38 +01:00
Sebastian 7a6f6d1074 Added my name to CONTRIBUTORS.txt 2022-03-06 13:31:32 +01:00
Sebastian 9a2dc6ea4d Added my name to CONTRIBUTORS.txt 2022-03-06 13:31:20 +01:00
Sebastian 2ff36c6d57 Added my name file 2022-03-06 13:27:58 +01:00
Sebastian 27ae2dc157 Added my name file 2022-03-06 13:27:29 +01:00