Giter VIP home page Giter VIP logo

daytime-udp's Introduction

Daytime UDP

DAYTIME protocol iterative server and client using UDP sockets written in C. Project developed for learning purposes in Networks and Services Architecture subject of Software Engineering degree at University of Valladolid.

Requirements

  • Docker running on your machine.

Development

First, set up the environment:

git clone https://github.com/jorge-sanz/daytime-udp # Clone repository
cd daytime-udp # Go to repository folder
docker run --name=ubuntu-daytime-udp -it -v $(PWD):/home ubuntu # Run Ubuntu container sharing repository folder

# Inside the container. Get the C compiler tools
apt-get update
apt-get install build-essential

For the next times, having the container already on my machine, how to deploy local environment?

docker start ubuntu-daytime-udp
docker exec -it ubuntu-daytime-udp bash

Compile client and server:

# Inside the container
cd /home
gcc -Wall -o client.out daytime-udp-client-Sanz-Perez.c
gcc -Wall -o server.out daytime-udp-server-Sanz-Perez.c

Run server:

# Inside the container
./server.out [port-number] # port-number is optional

To run a client, you need to open another terminal in the container:

docker exec -it ubuntu-daytime-udp bash

# Inside the container
cd /home
./client.out [server.IP.address] [port-number] # server.IP.address is mandatory, port-number is optional

daytime-udp's People

Contributors

jorge-sanz avatar

Watchers

 avatar  avatar

daytime-udp's Issues

chore: Create or use a proper Docker image

  • The Docker image should include all the tools for the environment.
  • The Docker image could launch the server automatically and allows you to run the client whenever you want.

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.