GithubHelp home page GithubHelp logo

yeazzz3x2c1 / udp-data-collector Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 272 KB

This project contains two part, server and client. This system allows multiple clients uploading files to server at the same time by using UDP protocol. At the same time we ensure the files integrity. The server developed by using C# and client developed by using Python.

License: MIT License

Python 21.25% C# 78.75%

udp-data-collector's Introduction

UDP-Data-Collector

This project contains two parts: a server and a client. This system allows multiple clients to upload files to the server simultaneously using the UDP protocol, while ensuring the files' integrity. The server is developed using C#, and the client is developed using Python.

We provide a simple example in the "Data Collector API" folder; check the file "client_codes_example.py" for more details. This system could make it very easy for you to transmit files from the client to the server.

A Simple Client Example:

In this example code, the client will transmit a file called "Example.png" to the server, and you can find the file in the server folder at "./Receive/Received.png". Hope you enjoy!

  1. Please ensure you have built the server up.
  2. The server will run on the default port 35525; you can change it yourself.
  3. Make sure you have prepared the target upload file, which in this example is "Example.png".
  4. Copy the following code and execute it, the file will be uploaded to the server.
  5. After uploading is finished, check the server folder. There must be a folder called "Receive". Inside it, you will find the file named "Received.png", which is specified in the parameter "Target_Path".
  6. Enjoy.
from Data_Collector_API import Data_Updater

updater = Data_Updater("127.0.0.1", 35525)
updater.Upload_File(File_Path="Example.png", Target_Path="Received.png") 

Contact

Author: Feng-Hao, Yeh

Email: [email protected]

udp-data-collector's People

Contributors

yeazzz3x2c1 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.