Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dependencies section for PTF NN agent, and updated diagram
- Loading branch information
1 parent
d5ec578
commit f7376df
Showing
5 changed files
with
476 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
|
||
import nnpy | ||
import sys | ||
|
||
pub = nnpy.Socket(nnpy.AF_SP, nnpy.PUB) | ||
pub.bind('inproc://foo') | ||
|
||
sub = nnpy.Socket(nnpy.AF_SP, nnpy.SUB) | ||
sub.connect('inproc://foo') | ||
sub.setsockopt(nnpy.SUB, nnpy.SUB_SUBSCRIBE, '') | ||
|
||
pub.send('hello, world') | ||
recv = sub.recv() | ||
|
||
if recv != 'hello, world': | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -e | ||
git clone https://github.com/nanomsg/nnpy.git | ||
# top of tree won't install | ||
cd nnpy | ||
git checkout c7e718a5173447c85182dc45f99e2abcf9cd4065 | ||
sudo pip install cffi | ||
sudo pip install . | ||
cd .. |
Oops, something went wrong.