Restructure server files and folders #212

Merged
lars.winzer merged 16 commits from chore/26-restructure-server-files into main 2026-03-30 18:59:21 +02:00
lars.winzer commented 2026-03-30 18:54:54 +02:00 (Migrated from git.scicore.unibas.ch)

Moved files into logical groups, seperated by multiple top-level directories.

Network

Containing everything related to the network, but no application related implementations.

  • command
    • execution (interface for CommandHandler and class of CommandRouter)
    • parsing (interface for CommandParser and class of CommandParserDispatcher)
  • events (EventBus and DisconnectEvent)
  • protocol (All components related to the protocol (request and response) and its abstractions)
    • parser (ProtocolParser for converting the RawPacket into a PrimitiveRequest)
      • tokenizer (Converts the String into Tokens. Validates the Syntax while doing so)
    • request (RequestContext, Request interface and PrimitiveRequest)
      • accessor (Providing simplified access to the List of RequestParameters)
    • response (Response interface with primitive implementations)
      • builder (Helper for building the ResponseBody)
      • dispatcher (Dispatching the response into the queue of the Session)
  • sessions (Session with SessionReader and SessionWriter, SessionManager and SessionDisconnectJob)
  • transport (Abstraction layer for the transport with TransportLayer and TcpTransport

Domain

Containing the game and other bussiness logic components.

App (to be created)

Containing implementations for the CommandParser and CommandHandler aswell as involved Request and Response classes.

Closes #26 (I remembered this time)

Moved files into logical groups, seperated by multiple top-level directories. ### Network Containing everything related to the network, but no application related implementations. * command * execution (interface for `CommandHandler` and class of `CommandRouter`) * parsing (interface for `CommandParser` and class of `CommandParserDispatcher`) * events (`EventBus` and `DisconnectEvent`) * protocol (All components related to the protocol (request and response) and its abstractions) * parser (`ProtocolParser` for converting the `RawPacket` into a `PrimitiveRequest`) * tokenizer (Converts the String into `Tokens`. Validates the Syntax while doing so) * request (`RequestContext`, `Request` interface and `PrimitiveRequest`) * accessor (Providing simplified access to the List of `RequestParameters`) * response (`Response` interface with primitive implementations) * builder (Helper for building the `ResponseBody`) * dispatcher (Dispatching the response into the queue of the `Session`) * sessions (`Session` with `SessionReader` and `SessionWriter`, `SessionManager` and `SessionDisconnectJob`) * transport (Abstraction layer for the transport with `TransportLayer` and `TcpTransport` ### Domain Containing the game and other bussiness logic components. ### App (to be created) Containing implementations for the `CommandParser` and `CommandHandler` aswell as involved `Request` and `Response` classes. Closes #26 _(I remembered this time)_
lars.winzer commented 2026-03-30 18:56:15 +02:00 (Migrated from git.scicore.unibas.ch)

added 2 commits

  • 059b7064 - Chore: Move 'tokenizer' into protocol/parser section
  • 2203f804 - Chore: Reflect path changes for tests

Compare with previous version

added 2 commits <ul><li>059b7064 - Chore: Move &#39;tokenizer&#39; into protocol/parser section</li><li>2203f804 - Chore: Reflect path changes for tests</li></ul> [Compare with previous version](/cs108-fs26/Gruppe-13/-/merge_requests/56/diffs?diff_id=14236&start_sha=b588f38cd5354e0b011867bb8012b213ed246ef1)
lars.winzer commented 2026-03-30 18:59:21 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit 73a80deb12

mentioned in commit 73a80deb12424fa36e72412c0bc0dccb5b92e573
lars.winzer (Migrated from git.scicore.unibas.ch) merged commit 73a80deb12 into main 2026-03-30 18:59:21 +02:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#212