This project contains a C++ source of select chat server.
network/
contains source of I/O multiplexing TCP server using select system call.
server/
contains source of chat server with room enter/leave/chat features.- Chat server uses TCP network library.
- Login feature is implemented using redis client.
main.cpp
which represents application layer runs chat server using network and chat server logic library.
- All C++ source files use
.cpp
for their extension. - All C++ header files use
.hpp
for their extension. - All C++ source/header files use
snake_case
for their name.
- Classes are defined in C++ header files.
- Class name is
PascalCase
of the header file name where it is defined.
ex) class TCPSocket is defined in tcp_socket.hpp
- All member functions use
PascalCase
for their name. - Parameter of member functions use
snake_case
for their name. - All member variables use
snake_case
for their name. - All private member variables use trailing underscore
_
at the end of their name.