Vietnamese version of gameshow "Who wants to be a millionaire" written in C and run directly on terminal.
Socket Programming in C
- TCP Protocol
- Multithreading
- Select
- SQLite3 (Database)
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)
- Open server (on one's Device)
$ cd server
$ make
$ ./server 8000 (port that you forward to in local)
- Run client app (On others Device)
$ cd client
$ make
$ ./client
$ (then enter server external IP address & port that you forward from)