Skip to content

hanyuanye/Linux-Chatserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinuxServer

Linux TCP/IP socket code. To run the client, open the terminal and enter gcc client.c -o client. Then run ./client port where port is a number from 1024 to 65536. To run the server, enter either g++ chatserver.cpp -o chatserver or gcc server.c -o server. To run the server, run either ./chatserver or ./server. Then, input the ports one by one that you wish to open a chatserver for.

Chatserver.cpp allows for communication between different clients using 1 server as the in between. It uses the command select() to see activities and respond accordingly.

Server.c uses fork() to spawn new processes which can communicate with each incoming client seperately.

About

A couple different server/client connection implementations allowing communication between multiple clients and a server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors