Skip to content

TCP chat server using winsocks2 and w2tcpip written in c++.

License

Notifications You must be signed in to change notification settings

Rishavgg/TCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Server

████████╗░█████╗░██████╗░
╚══██╔══╝██╔══██╗██╔══██╗
░░░██║░░░██║░░╚═╝██████╔╝
░░░██║░░░██║░░██╗██╔═══╝░
░░░██║░░░╚█████╔╝██║░░░░░
░░░╚═╝░░░░╚════╝░╚═╝░░░░░

░██████╗███████╗██████╗░██╗░░░██╗███████╗██████╗░ ██╔════╝██╔════╝██╔══██╗██║░░░██║██╔════╝██╔══██╗ ╚█████╗░█████╗░░██████╔╝╚██╗░██╔╝█████╗░░██████╔╝ ░╚═══██╗██╔══╝░░██╔══██╗░╚████╔╝░██╔══╝░░██╔══██╗ ██████╔╝███████╗██║░░██║░░╚██╔╝░░███████╗██║░░██║ ╚═════╝░╚══════╝╚═╝░░╚═╝░░░╚═╝░░░╚══════╝╚═╝░░╚═╝

Our project is a TCP chat server in which multiple client/users will be able to communicate with each other. The TCP server will run on localhost and will allow user to chat with one another if they are on the same network. The server code will use winsocks2 and W2tpcip header files so that the server can create and maintain sockets on Windows. The Project file also contains code for our client, through which our users can access the server. The server will act as an intermediary between the client to make a bare-bones group chat. As the server use winsocks it will only work on a Windows machine.

Directories

/src : contains all the source code for our project

/build : contains all binaries of the project

/.vscode : VS Code configuration file

/testing : contains code to be merged later and future update idea's

Files

client.cpp : code for our client

server.cpp : code for bare-bones TCP server (allows only one client)

Multi-Server.cpp : code for our TCP server (allows multiple clients)

Makefile : build instructions for g++ to include ws2_32.lib while building executables and where to place complied binaries