Commit graph

294 commits

Author SHA1 Message Date
Philip Trauner
37976049a6 Made it work (finally)
Replaced receive_routes with a shared route called meta. Highway manages itself with it's own networking capabilities. (Meta as fuck)
Added NoneType to sendable types (gzip doesn't like None).
Removed old, non-reachable code.
Gave up on multiple inheritence. To inherit from Shared override_methods has to be called. It will monkey-patch all required methods. (less hacky than before)
Ripped out tons of server/client specific code and made it shared.
2016-09-25 18:00:13 +02:00
Philip Trauner
42c08217dc Removed some Sync specific hacks, additional error handling
Patching is completely gone in this version and will be kept out as long as possible.
meta is not handled as a normal route anymore and will be ignored on exchange map creation.
Routes don't require a start method anymore.
2016-09-25 17:57:47 +02:00
Philip Trauner
2816756a31 Removed WallabyControl, ported to Highway networking, removed old commented-out code
The server is now completely ported over to Highway without much regression (except WallabyControl, but that was shite anyway)
The old code the accumulated during the port also was removed.
2016-09-25 17:54:37 +02:00
Philip Trauner
f6c9e505e0 Added default compression level 2016-09-23 14:19:04 +02:00
Philip Trauner
3b7733aee8 Bump version to fix an instancing issue 2016-09-18 20:21:32 +02:00
Philip Trauner
ab6444f118 Overhaul to work with Highway
create_routes now doesn't launch them automatically because routes are put together before the socket actually becomes avaliable.
create_exchange_map previously used the wrong index for the route list.
There is now a universal Route class from which ServerRoute and ClientRoute inherit.
2016-09-18 19:49:53 +02:00
Philip Trauner
058bc81b99 Experimental Highway compatibility 2016-09-18 19:49:18 +02:00
Philip Trauner
a583d87f6a ESock replacement
Highway is a wrapper around ws4py that is needed for routing and exchanging routes automatically.
Currently only the server exchanges routes with the client. This behaviour has to be replicated the other way around too.
Not all that stable.
2016-09-18 19:46:09 +02:00
Philip Trauner
56ad9ba376 DataTypes now reside in Highway 2016-09-18 19:45:17 +02:00
Philip Trauner
73f31496cc Updated to newer version of ws4y that allows for handler initialisation 2016-09-15 11:22:17 +02:00
Philip Trauner
522dbc4e8a First stage (before client connect) works again
Second stage (after client connect) can't be tested right now because there is not WebSocket client yet.
2016-09-11 21:38:13 +02:00
Philip Trauner
ad37319f1f Inital rework for switch to WebSocket 2016-09-11 20:36:31 +02:00
Philip Trauner
b9454f2865 Broke during migration to WebSockets
Will be replaced by behem0th
2016-09-11 20:35:27 +02:00
Philip Trauner
8638b98179 Removed max route length and added route ids
Routes are now handled as numbers by the networking layer. This changes requires the first message to be a dict of all routes with their associated ids. This way only 2 bytes are used per message, not 16 like before.
2016-09-11 20:32:13 +02:00
Philip Trauner
e8b855d37a Removed error handling function used by old networking 2016-09-11 20:31:48 +02:00
Philip Trauner
bee3050b95 Now invoking handler.send instead of handler.sock.send 2016-09-11 20:31:27 +02:00
Philip Trauner
422d262ddf Removed building-blocks of old networking 2016-09-11 20:30:43 +02:00
Philip Trauner
2622fe8837 Added portable version of ws4py 2016-09-11 20:28:57 +02:00
Philip Trauner
a1b52c0340 Updated readme to reflect current changes 2016-09-11 20:23:56 +02:00
Philip Trauner
13b4e0235c Added lookup caching and converted indentation to tabs 2016-09-11 15:20:06 +02:00
Philip Trauner
617e336f0b Updated authors 2016-09-11 00:00:49 +02:00
Philip Trauner
7004b45405 Reworked simulated Wallaby startup logic 2016-06-02 20:02:58 +02:00
Philip Trauner
f40f97035a Added requirements 2016-06-02 20:02:26 +02:00
Christoph Heiss
186e8ae1a0 Add myself to the contributers. 2016-04-15 10:13:07 +02:00
Christoph Heiss
dd66eb3376 Format the example code nice. 2016-04-15 10:12:16 +02:00
Christoph Heiss
306d629d0b Add configuration entries for setting the compression level used by ESock.
On the ST client and on the server, compression_level defaults to 2,
on the Wallaby client to 0 because of limited resources and longer
battery-life.
2016-04-15 10:11:48 +02:00
Christoph Heiss
a6de0790dd Add compression to ESock.
This is mostly transparent to the user.
A compression-level can be specfic (0-9), where 0 equals no,
1 weakest and 9 best compression.
Currently, the compression level defaults to 0.
2016-04-15 10:09:25 +02:00
Christoph Heiss
dce28928cc Fix path for the fl0w Sublime-settings file.
Also, some minor cleanups.
2016-04-15 10:09:08 +02:00
Christoph Heiss
edd404beef Add shebangs and make files executable. 2016-04-15 10:08:14 +02:00
Nico Kratky
83fc9abb20 Removed setup instructions from README 2016-04-15 08:42:14 +02:00
PhilipTrauner
3db86baed8 Redid ReloadHandler to reduce duplicated events (works hopefully) 2016-04-10 00:54:32 +02:00
PhilipTrauner
d8669baf95 Added proper disconnect on shutdown and reboot 2016-04-10 00:53:33 +02:00
PhilipTrauner
2e4d744e2c Hopefully fixed includes 2016-04-09 19:55:43 +02:00
PhilipTrauner
e5d64f4738 Hopefully fixed linking 2016-04-09 19:13:46 +02:00
PhilipTrauner
7e1a683f5c Added config parameter for output unbuffer 2016-04-09 00:16:25 +02:00
PhilipTrauner
7fb4db19cc Removed debug print 2016-04-09 00:15:38 +02:00
PhilipTrauner
8033e044fb Using string repr of error when address is in use 2016-04-09 00:15:14 +02:00
PhilipTrauner
7f881f3bf7 Hopefully fixed event duplication as well as offline editing 2016-04-09 00:14:22 +02:00
Philip Trauner
419e3e0f43 Added compile time to status 2016-04-08 19:23:25 +02:00
Philip Trauner
f5b5ef4c36 Start program in seperate thread 2016-04-08 14:40:59 +02:00
Philip Trauner
10e7638511 Added debug prints for possible segementation issue 2016-04-08 14:40:21 +02:00
Philip Trauner
b8faaf456d Link wallaby libs 2016-04-08 14:39:10 +02:00
Philip Trauner
c57aed0a1f Added warnings to compile to indicate wrong processor architecture and missing botball library 2016-04-08 14:37:50 +02:00
Philip Trauner
b2daba4aec Added possible solution to stop problem 2016-04-08 09:10:25 +02:00
Philip Trauner
733aa47433 Additional debug information 2016-04-08 09:09:00 +02:00
Philip Trauner
2f0c91e676 Removed restart 2016-04-08 09:08:13 +02:00
Philip Trauner
33478e03a7 Removed debug print and removed restart 2016-04-08 08:37:18 +02:00
Philip Trauner
56766d593f Removed restart 2016-04-08 08:36:40 +02:00
Philip Trauner
bef2413538 Removed restart and added warning if wrong processor architecture is detected 2016-04-08 08:36:06 +02:00
Philip Trauner
254b07d781 Fixed run command 2016-04-07 11:57:13 +02:00