Skip to content

sinngam-khaidem/Multiperson-chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multiperson-chat-server

This is a command line interface based multiperson chat server built using sockets.

CONTENTS

  1. showip.c - This function shows the IP address of a host given on the command line.
  2. gittingHostName.c - This function returns the name of the computer our program is running on.
  3. pollserver.c - The is the main program of our chat server.

PLATFORM AND COMPILER

The codes were complied via WSL using GNU's gcc compiler. If you are on Windows or Solaris/SunOS, please refer to the reference attached below.

1. showip.c

Simply compile the file using gcc showip.c.
Run using ./a.out www.example.net

2. gettingHostName.c

Compile using gcc gettingHostName.c.
Run using ./a.out.
This will return the name of your system which you can use during telnet.

3. pollserver.c

Run it on one window
gcc pollserver.c
./a.out
Then, telnet localhost 9034 from a number of other terminal windows.

References

https://beej.us/guide/bgnet/pdf/bgnet_a4_c_1.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages