Thomas Winget
771d0b4489
hive pytest framework in place (and path build test works)!
2020-03-03 19:57:09 -05:00
Thomas Winget
04c1f67f78
more structure to python hive code
2020-03-03 19:57:09 -05:00
Thomas Winget
d40b106292
--print-events to enable hive printing all events, default false now
2020-03-03 19:57:09 -05:00
Thomas Winget
2bf1c889cf
call relays 'relays' instead of 'routers' in hive.py
2020-03-03 19:57:09 -05:00
Thomas Winget
ee7b7e917d
hive can now instantiate and start relays/clients separately
2020-03-03 19:57:09 -05:00
Thomas Winget
2bbb274131
superfluous class declaration
2020-03-03 19:57:09 -05:00
Thomas Winget
e1be27611b
hive print count of each event after every 10 events
2020-03-03 19:57:09 -05:00
Stephen Shelton
4741d81051
Add GotIntro event to RouterHive
2020-03-03 19:57:09 -05:00
Thomas Winget
68c1ae52b3
add ShortHex function to AlignedBuffer
2020-03-03 19:57:09 -05:00
Thomas Winget
341d03bcf8
changes
2020-03-03 19:57:09 -05:00
Jeff Becker
e7689b40a7
dht pub intro message router event thiny doo
2020-03-03 19:57:09 -05:00
Jeff Becker
22ed47ca12
better tostring
2020-03-03 19:57:09 -05:00
Thomas Winget
5672c42f20
RouterEvent::ToString in parent class
2020-03-03 19:57:09 -05:00
Thomas Winget
81209669e3
typo
2020-03-03 19:57:09 -05:00
Thomas Winget
14bf2733c1
how to use a router event doc
2020-03-03 19:57:09 -05:00
Thomas Winget
4ffd42109c
some tooling documentation
2020-03-03 19:57:09 -05:00
Thomas Winget
309569628e
change some to_string functions
2020-03-03 19:57:09 -05:00
Thomas Winget
db2a0ef7f7
git add because I'm dumb
2020-03-03 19:57:09 -05:00
Thomas Winget
a9882ad475
PathRequestReceivedEvent implemented
2020-03-03 19:57:09 -05:00
Thomas Winget
c9a278c0de
some more changes to pybind/hive code, read below
...
hive.py is currently largely for testing the pybind stuff, so changes to it will likely
be frequent and arbitrary for now.
Added pybind for llarp::path::PathHopConfig, but not every member -- just rc and upstream routerID
Hive now uses std::queue with mutex instead of our lockless queue.
Removed some functions from Hive that will not be necessary as things are being handled from python.
2020-03-03 19:57:09 -05:00
Thomas Winget
e0187fd690
holy GIL contention batman
2020-03-03 19:57:09 -05:00
Thomas Winget
5cf35769b4
don't have python try to intercept stdout/stderr
2020-03-03 19:57:09 -05:00
Jeff Becker
32dbe6b1ad
more shiz
2020-03-03 19:57:09 -05:00
Jeff Becker
877443d95c
more introspection code
2020-03-03 19:57:09 -05:00
Thomas Winget
931ff521d1
working toward full testnet of routers (not clients yet) in hive/pybind setup
...
Not working yet -- some sort of RC issue. Checkout the commit prior to this if you want something that 'works' that you can play with.
2020-03-03 19:57:09 -05:00
Thomas Winget
d8d0338575
don't use cmake findlibrary on pybind
2020-03-03 19:57:09 -05:00
Thomas Winget
2cda9f6cb8
pybind stable
2020-03-03 19:57:09 -05:00
Thomas Winget
1e04decb66
can ping on lokinet running in python context!
2020-03-03 19:57:09 -05:00
Thomas Winget
85e510c89b
add router_event pybind file
2020-03-03 19:57:09 -05:00
Thomas Winget
5e498e962f
working on more pybinds
2020-03-03 19:57:09 -05:00
Thomas Winget
0f34a950a9
pybind config object, working
2020-03-03 19:57:09 -05:00
Thomas Winget
9b3bf833e0
revert nop logging -- un-revert later
2020-03-03 19:57:09 -05:00
Jeff Becker
5dcf271339
update python
2020-03-03 19:57:09 -05:00
Thomas Winget
a5c2b369b7
nop logging on hive build for now
...
a bunch of routers logging to stdout at the same time is a complete
charlie foxtrot. until we take the time to make logger not a singleton
(and probably make each router able to log to its own file rather than stdout)
just make it not log.
Note: this is very temporary, as the logs will be annoying for testing the
pybind stuff and shouldn't be necessary for debugging it
2020-03-03 19:57:09 -05:00
Thomas Winget
0007996fde
using instead of typedef
2020-03-03 19:57:09 -05:00
Jeff Becker
21026753d1
makefile tweaks for tommyboi
2020-03-03 19:57:09 -05:00
Jeff Becker
a5dc41b049
OMG IT DOES STUFF :DDDDDD
2020-03-03 19:57:09 -05:00
Jeff Becker
1bb3fba31b
add demo script
2020-03-03 19:57:09 -05:00
Jeff Becker
831e80f498
more pybind bindings
2020-03-03 19:57:09 -05:00
Thomas Winget
f712acc486
huzzah it builds, time to test soon!
2020-03-03 19:57:09 -05:00
Jeff Becker
da79b14703
make it compile
2020-03-03 19:57:09 -05:00
Jeff Becker
d0b909f881
use stable branch in submodule
2020-03-03 19:57:09 -05:00
Thomas Winget
8dc5dabe49
working toward compilation, still has include issue
2020-03-03 19:57:09 -05:00
Jeff Becker
a4141617d7
add build infra for toggling hive builds
2020-03-03 19:57:09 -05:00
Jeff Becker
26c1670af7
make it compile
2020-03-03 19:57:09 -05:00
Jeff Becker
fc0dfb6e3d
add submodule
2020-03-03 19:57:09 -05:00
Jeff Becker
78454f1cb4
more introspection
2020-03-03 19:57:09 -05:00
Jeff Becker
35bea37fd1
make it compile
2020-03-03 19:57:09 -05:00
Jeff Becker
1fdb8b4c94
initial pybind11 introspection code
2020-03-03 19:57:09 -05:00
Thomas Winget
8d03e6dd3c
more router hive stuff, read below the fold
...
Router now has a hive pointer if LOKINET_HIVE is set.
llarp::Context has a method InjectHive to give Router the pointer.
Router has a method NotifyRouterEvent which does:
- when LOKINET_HIVE is set, passes the event to RouterHive
- else when LOKINET_DEBUG is set, prints the event at a low log level
- else NOP
2020-03-03 19:57:09 -05:00