Necas209 / Theater-App-Winsock

Solution for a theater ticket reservation system, written in C/C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theater App - Winsock

Console application developed for Distributed Systems class, for selling and buying theater tickets.

Project source code was written in its entirety in C++, and makes extensive use of the JSON library JSON for Modern C++, by Niels Lohmann.

Communication between client and server was achieved using the Windows implementation of sockets, Winsock.

All functions are properly documented using the Doxygen syntax, in hopes no confusion for their purpose is arisen.

Message Structure

Messages sent by client and server are serialized in JSON and comprised of two fields:

  • The code, corresponding to an enum defined in message.h
  • The content, which can be anything from an integer, to a string, or even a serialized object / list of objects

Example of a message:

{
  "code": 0,
  "message": "HELLO"
}

Note: 0 corresponds to a "HELLO" message.

About

Solution for a theater ticket reservation system, written in C/C++.

License:MIT License


Languages

Language:C++ 99.9%Language:CMake 0.1%