Skip to content

A socket-based multi-client chat written with C code

License

Notifications You must be signed in to change notification settings

emceelam/Multi-Chat-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Multi Chat C - A socket-based multi-client chat written with C code

SYNOPSIS

Open terminal

make all
./server

From other terminal

telnet 127.0.0.1 4020

From yet another terminal

telnet 127.0.0.1 4020

Start typing text in your telnet sessions. Typing "quit" will cause the connection to terminate. Typing nothing for 10 seconds will cause connection to terminate.

DESCRIPTION

This is a socket-based multi-client chat that echoes one user's chat to other user's chat telnet sessions.

FEATURES

  • Multiple telnet chat sessions
    • select()
    • non-blocking read/write sockets
  • Time out inactive sockets
    • signal handling (SIGALRM)
    • sigprocmask()
    • sigaction()
  • Docker instructions

AUTHOR

Lambert Lum

email address

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Lambert Lum

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

A socket-based multi-client chat written with C code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published