/simple-chatting

simple unix server-client program for chating, written in C

Primary LanguageCApache License 2.0Apache-2.0

Simple Chatting

Description

  • simple unix server-client program for chating, written in C

Usage

Server

gcc ./src/block/server.c  -o ./dist/server
./dist/server

Client

gcc ./src/block/client.c  -o ./dist/client
./dist/client

Client Operation

  • sign up :
sign $username
  • send message :
send $other_user $message
  • the message sent by other user will not display automatically, you should pull it from server manually
pull
  • The server stores user info in memory, it will disappear if the server is stoped.