Skip to content

greenblat17/egts-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EGTS Protocol

Java server that implements communication using the EGTS protocol and a client that simulates communication with the server.

Tech Stack

  • Java 17
  • Maven
  • Docker

Install

  git clone https://github.com/greenblat17/egts-protocol.git
  cd egts-protocol

Docker

Start server

  docker run greenblat17/egts-server

Start server and client

  docker run --network-alias server --network egts  egts-server
  docker run --network egts egts-client  

Docker Compose

  docker compose up

Usage only Java EGTS Library

Example for decoding packet

public class EgtsServerApplication {
    public static void main(String[] args) {
        var data = new byte[]{1, 0, 3, 11, 0, 3, 84, 0, 0, 74, 21, 56, 0, 51, 84};
        var result = new Package();
        var ans = result.decode(data);
        System.out.println(ans);
    }

}

About

EGTS protocol server and client write on Java

Topics

Resources

Stars

Watchers

Forks