XGPから送られてくるOSI参照モデルで言うところのL4なUDP StringをL7なHTTP JSONに変換し、その逆もしかりなツールセットです。
XGP->UDP String Receiver: Send UDP String
UDP String Receiver->Active MQ: Queueing
Web Browser->HTTP Server for Sending JSON: Get JSON
HTTP Server for Sending JSON->Active MQ: Get queue
Web Browser->HTTP Server for Sending UDP String: Post JSON
HTTP Server for Sending UDP String->XGP: Send UDP String
黒い画面(ターミナル)でやる
$ python3 --version
Python 3.6.3 <- これが出たらOK(3.x.yのxとyは適当)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install python3
$ python3 --version
$ cd どこか適当なディレクトリ
$ git clone https://github.com/kimyan/xgp-transcoder.git
$ cd xgp-transcoder
$ python3 -m venv env
$ source env/bin/activate <- (env)と表示されていればOK。以後、これをやってから作業する。
(env)$ pip install -r requirements.txt
上の続きで
(env)$ python http-server-for-sending-json.py
別窓を開く
$ cd xgp-transcoder <- 実際の置き場所に移動する
$ source env/bin/activate
(env)$ python http-server-for-sending-udp-string.py
別窓を開く
$ cd xgp-transcoder <- 実際の置き場所に移動する
$ source env/bin/activate
(env)$ python udp-string-receiver-for-sending-queue.py