项目作者: mehdi-sadighian

项目描述 :
c++ chat server and client multithreaded
高级语言: C++
项目地址: git://github.com/mehdi-sadighian/terminal-chat.git
创建时间: 2017-05-18T10:20:31Z
项目社区:https://github.com/mehdi-sadighian/terminal-chat

开源协议:

下载


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