This repository is made by
- HGU 17 Ko Yeong Kwang
- HGU 18 Cho Hasung
This powerpoint is created for the explain. Google Slide.
This repository shows how to set up sever, client and how to execute.
# install g++ if you don't
sudo apt-get install g++
#check installed c++ version
g++ --version
Download all the git files on this repo
# install ncurses for get an input without enter.
sudo apt-get install libncurses5-dev libncursesw5-dev
# install ncurses for get an input without enter.
brew install ncurses
# install ncurses for get an input without enter.
sudo apt-get install libboost-all-dev
# install boost for get an input without enter.
brew install boost
We already included ap_protocol.hpp header file so, you need to give.
#Make a execute file for server
g++ server.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lboost_system -lncurses -std=c++11
#Give any port number you wanna use
./['execute file name'] ['port number']
#Make a execute file for client
g++ client.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lboost_system -lncurses -std=c++11
# Run demo client with server's ip address and port number you selected.
./['execute file name'] ['IPv4 address'] ['port number']
it may possible to use IPv6 but we did not check it. Recommend to use IPv4.
Similar to above window method.
#Make a execute file for server
g++ server.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lncurses -I ['your boost system include location'] -lboost_system -L ['your boost system lib location'] -std=c++11
#example
g++ server.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lncurses -I /opt/homebrew/Cellar/boost/1.81.0_1/include -lboost_system -L /opt/homebrew/Cellar/boost/1.81.0_1/lib -std=c++11
#Give any port number you wanna use
./['execute file name'] ['port number']
#Make a execute file for client
g++ client.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lncurses -I ['your boost system include location'] -lboost_system -L ['your boost system lib location'] -std=c++11
#example
g++ client.cpp -o ['execute file name'] app_protocol.hpp -lpthread -lncurses -I /opt/homebrew/Cellar/boost/1.81.0_1/include -lboost_system -L /opt/homebrew/Cellar/boost/1.81.0_1/lib -std=c++11
# Run demo client with server's ip address and port number you selected.
./['execute file name'] ['IPv4 address'] ['port number']
- Apply On WebAssembly
- Split int bit to use less resources
- Improve network delay differences between users
- Add obstruction and ball holding capabilities
- Add items such as an increase in the number of openings
Boost: boost async chatting program server, client example
Ncurses: I refered how to use ncurses examples
Our project is inspired by these previous Midterm Exam in IoT laboratories class in HGU.(Prof. Y. M. KO)