Giter VIP home page Giter VIP logo

jthpd's Introduction

JSON To HKTCPTSD Protocol Daemon

Introduction

If you want to use an extension to send requests to HKTCPTSD, you can’t send raw data throuch TCP socket from the browser, so to solve that problem, you can just send a POST request with a JSON file to this program, And the JTHPD will translate it to HKTCPTSD protocol and send it to HKTCPTSD.

JSON to send

an example of JSON to send is:

{
    pass: "rootadmin",
    id: 69,
    string: "foo",

}

pass contains the password string, id contains the id and string contains the string to send The JSON has to be sent through a HTTP POST request

Environment Variables

The help page that is shown right after running the program tells all about the environment variables needed

This is the Help Page
Environment variables:
JTHPD_ADRESS: for your listening adress default: 127.0.0.1:7979
JTHPD_MAX_PROCESS: number of threads: default 8
SEND_ADRESS: adress where hktcptsd is listeining to, default: 127.0.0.1:6969

Why was this feature not added to HKTCPTSD

Because I did not want HKTCPTSD to be bloated, JTHPD imports crates from crates.io, which I did not want to do for HKTCPTSD

Imported Crates

serde

this crate is for converting JSON to strict through a macro

httparse

this crate is for parsing HTTP requests

Future TODO

  • NOTHING, this is prefect

jthpd's People

Contributors

ujwacha avatar

Stargazers

 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.