TransparencyToolkit/UDPServer

Name: UDPServer

Owner: Transparency Toolkit

Description: Manages communications over UDP between different parts of the pipeline

Created: 2018-03-01 10:20:32.0

Updated: 2018-03-01 10:21:12.0

Pushed: 2018-03-01 10:22:26.0

Homepage: null

Size: 14

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

This is a small UDP server that receives data sent from the OCR server program. It decrypts this data, verifies that it has all been received, saves any files, and sends the JSON data to DocManager for indexing.

Currently there is also code for sending or receiving data over UDP, including verifying receipt, in https://github.com/TransparencyToolkit/OCRServer and https://github.com/TransparencyToolkit/DocUpload. There are some slight differences, but there is a lot of redundancy. Long term, we may want to integrate the code from these apps into this server, and run an instance of this on the upload server, OCR server, and server with DocManager and LookingGlass. This is likely best done when we are trying to improve our UDP setup later on, so for now I've confined the code in the app/udp directories of the respective applications for easy refactoring later.

Setup Instructions-

  1. Clone this repository on the same machine as DocManager and LookingGlass are running on.

  2. Ensure curl is installed and that the doc_integrity_check and curb gems are installed.

  3. Run rackup. If running this on the same server as the doc upload form or OCR server, you may need to specify a unique port, such as: rackup -p 9797


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.