comunication protocol

                  R-TYPE COMMUNICATION PROTOCOL

Abstract

This document provides an in depth specification of the client <-> server communication protocol implemented during the Epitech R-Type project. The protocol as described in this document contains all necessary commands a client must implement in order to participate in games run by the R-Type server.

Status of this Memo

This memo is the specification of the Communication Protocol implemented by its authors for the R-Type Epitech project. This specification is an exercise in the writing of an rfc document as defined by RFC 7322 "RFC Style Guide". This specification does not aim to be submitted at any point in time.

Copyright Notice

This document is not subject to any copyright notice and thus expresses no rights reserved.

Table of Contents

1. Introduction ...................................................X
2. TCP Protocol ...................................................X
    2.1. Command Syntax ...........................................X
    2.2. Command Response .........................................X
        2.2.1. Response Codes and Meaning .........................X
    2.3. Server Commands ..........................................X
    2.4. Client Commands ..........................................X
3. UDP Protocol ...................................................X
    3.1. Command Syntax ...........................................X
    3.2. Server Commands ..........................................X
        3.2.1. Server Command Listing .............................X
        3.2.2. Server Command Arguments ...........................X
    3.3. Client Commands ..........................................X
        3.3.1. Server Response ....................................X
        3.3.2. Client Command Listing .............................X
        3.3.3. Client Command Arguments ...........................X
  1. Introduction

    The R-Type project is an epitech project that aims to produce a multiplayer game based on the R-Type game.

    This project aims to introduce students to the intricate details of building a networked multiplayer game while also focusing on the package the game is delivered in. This includes but is not limited to :

  2. TCP Protocol

    The TCP protocol will serve as the main protocol used by the client and server before the start of a game. It will also serve the purpose of handling anything non relevent to the game currently being played. The sole exception to that last bit will be the handling of in game messaging and server message broadcasting.

    2.1. Command Syntax

    2.2. Command Response

    2.3. Server Commands

    2.4. Client Commands

  3. UDP Protocol

    The UDP protocol will be the main protocol used to communicated the behaviour of the game to clients during any given game.

    Since in this project the server is supposed to handle most of the game logic this protocol will be centered around the ECS and communicating it's state over the course of a given game.

    NO UDP SERVER COMMAND will await any type of response.

    3.1. Command Synthax

    3.2. Server Commands

    3.3. Client Commands

Last updated