/chatroom

A very simple chatroom implemented by multithreading in C++

Primary LanguageC++

chatroom

Compile

使用makefile

make

Mac

g++ -std=c++11 server.cpp -o server.out
g++ -std=c++11 client.cpp -o client.out

Linux

g++ server.cpp -o server.out -pthread
g++ client.cpp -o client.out -pthread

Run

./server.out port_number
./client.out IP_address port_number

server

client