Skip to content

A network program written in C where clients can connect and issue friends commands.

License

Notifications You must be signed in to change notification settings

lcai62/friends-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

friends-server

A network program written in C where clients can connect and issue friends commands.

Table of Contents

  1. Description
  2. Installation
  3. Usage
  4. Commands

Description

  • The motivation behind building this project was to develop a simple messaging tool for efficient and user-friendly communication among friends.
  • By eliminating the unnecessary complexities and features of other platforms, this project aimed to streamline the experience and provide a lightweight, portable platform.
  • Additionally, it removes the need for an extensive sign-up process and profile set up, allowing users to quickly start communicating with their friends.
  • From this project, I learned how to a create a server in C with sockets, which allows any number of users to connect.
  • I also learned how to juggle many client connections, and how to prevent deadlock when attempting to check multiple sockets for data.

Installation

  1. Clone the repository
  2. Run make on the root directory
  3. Run the executable friend_server

Usage

  1. Starting the server
  2. Compile the project, see installation
  3. Run the executable friend_server
  4. The default port is 56524
  5. The server is up and running!

Commands

  1. quit
    Disconnects the client from the server
    Usage: $quit

  2. list_users
    Lists all the users that have registered to this server
    Usage: $list_users

  3. make_friends
    Makes a friendship between the currrent user and the username
    Usage: $make_friends username

  4. post
    Posts a message on the target's profile
    Usage: post target message

  5. profile
    Shows the profile of the username
    Usage: profile username

About

A network program written in C where clients can connect and issue friends commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published