/Millionaire

Network Programming Project (TCP Protocol + Multithreading)

Primary LanguageC

Millionaire

Table of contents

General Info

Vietnamese version of gameshow "Who wants to be a millionaire" written in C and run directly on terminal.

Member

Technology

Socket Programming in C

  • TCP Protocol
  • Multithreading
  • Select
  • SQLite3 (Database)

Setup

For running on local:

  • Uncomment this line servaddr.sin_addr.s_addr = htonl(INADDR_ANY);
  • Open the same port on server and client side: For example: $ ./server 5000

If server & client are on different network:

  • Port forwarding needed...
    (which could be done through ssh or modem config)
  1. Open server (on one's Device)
$ cd server
$ make
$ ./server 8000 (port that you forward to in local)
  1. Run client app (On others Device)
$ cd client
$ make
$ ./client
$ (then enter server external IP address & port that you forward from)

Demo

gif-demo