Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 697 Bytes

File metadata and controls

36 lines (33 loc) · 697 Bytes

Socket Programming

NTU Computer Network 2024
Socket programming based on C++

Current features

  • Multithreaded server
  • Authenticate
    • Login
    • Register
  • Chatroom
    • Client-to-server
    • Client-to-client (through the server)
  • File transfer
    • Upload file to server
    • Download file from server
  • Message encryption with OpenSSL
    • Hybrid cryptosystem (RSA+AES)

Install

Install OpenSSL package.

sudo apt install libssl-dev

Compile

make

Run the code

./server
./client
  • Default server address: 127.0.0.1:48763
  • The files stored on the server will be placed in the serverfile folder
  • Registered account information is stored in account.txt