Code Monkey home page Code Monkey logo

xtcprelay's Introduction

xtcprelay

xtcprelay is a framework which can take anything, literally, as a relayer of a tcp connection.

lets take mail based floppy data transmission as an example:

Normal TCP Connection



.--.                      .--.
|__| .-------.            |__| .-------.
|=.| |.-----.|            |=.| |.-----.|
|--| ||  C  ||   <====>   |--| ||  S  ||
|  | |'-----'|            |  | |'-----'|
|__|~')_____('            |__|~')_____('

xtcprelay with Mail based floppy driver

.--.                                                     
|__| .-------.                                           
|=.| |.-----.|         .-------------.           ______  
|--| ||  C  ||  <====> | Client Side | <====>   | |__| | 
|  | |'-----'|         |  xtcprelay  |          |  ()  | 
|__|~')_____('         |_____________|          |______| 
                                                    ^
                                                   | | 
                                                   | |
                                                    V
                                                 _________
                                               .`.        `.
                                              /   \ .======.\
                                              |   | |______||
      via  UPS/USPS/FedEx/....                |   |   _____ |
                                              |   |  /    / |
                                              |   | /____/  |
                                              | _ |         |
                                              |/ \|.-"```"-.|
                                              `` |||      |||

                                                    ^
                                                   | | 
                                                   | |
                                                   | |
.--.                                               | |     
|__| .-------.                                      V      
|=.| |.-----.|         .-------------.           ______  
|--| ||  S  ||  <====> | Server Side | <====>   | |__| | 
|  | |'-----'|         |  xtcprelay  |          |  ()  | 
|__|~')_____('         |_____________|          |______| 


This will be useful to bridge two networks with anything.

Supported Drivers

Azure Storage Queue

talk over azure storage queue

Usage

Bridge a tcp server listens on :9000 as an example

  • Server Side
./xtcprelay -d azqueue --azqueue-account <YOUR ACC> --azqueue-key <YOUR KEY> serverside --azqueue-relayer-address test --azqueue-server-address 127.0.0.1:9000
  • Client Side
./xtcprelay -d azqueue --azqueue-account <YOUR ACC> --azqueue-key <YOUR KEY> clientside --azqueue-relayer-address test --azqueue-listen-address 0.0.0.0:9001

Now on client side machine you will have a 9001 identical to remote 9000. All traffic are relayed by your storage queue

Mail based floppy

WIP

xtcprelay's People

Contributors

tg123 avatar

Watchers

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