Skip to content

An implementation of a Server/Client console application in C, on Linux Environment

Notifications You must be signed in to change notification settings

tunicashashi/TCP-UDP-Linux_Environment_C_Server_Client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Owner: Daniel Better

An implementation of a Server/Client application based on both TCP/UDP protocols

How to run the client/server:

There's a "Makefile" included in the folder of the excercise.

Make

After "Make", there'll be 2 executable files, "server" & "client".

First of all, activate the "server":

There are two options as to how to run the server:

TCP connection, supports -d & -s flags

  • -d for directive to start at
  • -s for "select" implementation of the new connections instead of "fork"
$./server

UDP connection, also supports the -d directive.

$./server -u

when server is activated with -u the client must be run with -u corressponding aswell (instructions up-ahead)

Now we can run the client: 2 options:

TCP connection:

$./client 127.0.0.1

UDP connection: (must be corressponding to the $./server -u option)

$./client 127.0.0.1 -u

The client supports the following commands: cd, lcd, put, get, dir, quit.

About

An implementation of a Server/Client console application in C, on Linux Environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.0%
  • Makefile 1.0%