Code Monkey home page Code Monkey logo

udp-packet-server's Introduction

This is a small and simple project to work with UDP

The goal is to create simple packages and send them over UDP. First step is to just check correctness of the packets using a java.MD5 checksum at the end of the packet transmission.

Aufbau Pakete:

// normales Paket
Packet 
    Transmission id (16),
    Sequence Number (32),
    Data (..)
}

// wenn die Sequenz Nummber = null ist (also erste Paket der startenden
// Übertragung)
Packet {
    Transmission id (16),
    Sequence Number (32),
    Max Sequence Number (32),
    File Name (2..2048)
}

// das lezte Paket der Übertragung (wichtig: checksum)
Packet {
    Transmission id (16),
    Sequence Number (32),
    java.MD5 (128)
}

command line tools:

  • listen
    general listen on default port 8080: ./PP --listen
    listen on specific port and ip (both optional): ./PP [-p <port>] [--ip <ip_addr>] --listen
    write received files to specific output directory (new dir is created if necessary): ./PP [-o <pathToDir>] --listen
    listen on port and ip and sotre to directory: ./PP [-p <port>] [--ip <ip_addr>] [-o <pathToDir>] --listen
  • send
    general send to default ip and port (localhost, 8080): ./PP --send <pathToFile>
    send with ip and port (both optional): ./PP [-p <port>] [--ip <ip_addr>] --send <pathToFile>
  • verbose
    for verbose output, add -v to the call: ./PP -v --listen

udp-packet-server's People

Contributors

kneidl18 avatar plusalexander 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.