GithubHelp home page GithubHelp logo

cjconnor24 / c-client-server-coursework Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.82 MB

๐Ÿ’ปโ†ช๏ธ๐ŸŒโ†ฉ๏ธ๐Ÿ–ฅ Repo for Systems Programming Client-Server C University Coursework

Makefile 1.41% C 98.59%
c client-server university-project tcp

c-client-server-coursework's Introduction

Systems Programming - TCP Client / Server - C Coursework

This repo is for a University Coursework in the C language.

Overview

We were given the task of implementing a very simple TCP Client / Server program using the C language and TCP sockets. The client should me a menu driven program which will send and recieve various options to the server.

Functions

  • Get student name and IP
  • Get server time
  • Get server file list
  • Download file from server (including binary files)

Installation

git clone https://www.github.com/cjconnor24/sp-c-coursework ccoursework

Server

cd ccoursework/server
make

Client

cd ccoursework/client
make

Running

To test the program, first launch the server program:

cd ccoursework/server
./server

The launch the client:

cd ccoursework/client
./client

You will see a screen like below - simply follow the options:

  _______ _____ _____   _______ _      _____ ______ _   _ _______
 |__   __/ ____|  __ \ / / ____| |    |_   _|  ____| \ | |__   __|
    | | | |    | |__) / / |    | |      | | | |__  |  \| |  | |
    | | | |    |  ___/ /| |    | |      | | |  __| | . ` |  | |
    | | | |____| |  / / | |____| |____ _| |_| |____| |\  |  | |
    |_|  \_____|_| /_/   \_____|______|_____|______|_| \_|  |_|
--------------------------------------------------------------------------

	Student: Chris Connor
	    SID: S1715477
	  Email: [email protected] / [email protected]
	 GitHub: https://www.github.com/cjconnor24/sp-c-coursework (PRIVATE REPO)

--------------------------------------------------------------------------

Successfully connected to server...

+-----------------------------------+
|                MENU               |
+-----------------------------------+
|  [0]	Re-display menu             |
+-----------------------------------+
|  [1]	Get Student Information     |
|  [2]	Get server timestamp        |
|  [3]	Get server information      |
|  [4]	Get server file list        |
|  [5]	Get a file from the server  |
+-----------------------------------+
|  [6]	Exit                        |
+-----------------------------------+

Enter your choice>

c-client-server-coursework's People

Contributors

cjconnor24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.