Skip to content

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

License

Notifications You must be signed in to change notification settings

Necas209/Theater-App-Winsock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published