Skip to content

mehdi-sadighian/terminal-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terminal-chat

c++ chat server and client multithreaded

this chat server is written on UNIX environment (FREEBSD 10.3). its an exprimental program to send and recive message simultaneously on a single socket with threads.

Note: if you want to compile in linux, remove this line: #define _BSD_SOURCE

Compilation:

on server side: g++ chatserver.cpp -lpthread -o chatserver

on client side: g++ chatclient.cpp -lpthread -o chatclient

Usage:

on server side: ./chatserver port

example: ./chatserver 2017

on client side:

./chatclient server_ip server_port

example:

./chatclient 192.168.10.1 2017

License

This software is released with no warranties and is under public domain.

mehdi.sadighian@hotmail.com

Releases

No releases published

Packages

No packages published

Languages