Skip to content

A simple socket programming which creates a connection between two terminals on linux.

Notifications You must be signed in to change notification settings

hassanyousufx/Simple-Server-and-Chat-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

C++ Sockets - Simple server and client chat (linux)

A simple socket programming which creates a connection between two terminals on linux. This was my second semester final project, so I thought I'll share with you.

Video: https://www.youtube.com/watch?v=IydkqseK6oQ

Requirements

  1. Ubuntu 12.0 LTS or higher
  2. G++ compiler for Ubuntu
  3. A text editor

Compilation

  1. Compile the server.cpp file first and then the client.cpp file.
  2. To send a message, run your client.cpp and type "your-message *" *Notice that you need to add an asterisk at the end of each sentence to send a message.
  3. Same goes for server.cpp

Limitations

This code is limited to one client only. There is only one-to-one connection. To have multiple connections you need to know about threading.

About

A simple socket programming which creates a connection between two terminals on linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages