Moritz Warning
787608b568
use _network function to reduce source code complexity
11 years ago
Moritz Warning
2b04ac5e9b
replace _networks map by vector
...
_networks is usually quite small, using binary search on a vector might be faster comapred to std::map.
This is especially true when using uClibc++, which uses a list.
11 years ago
Adam Ierymenko
7bae95836c
Root server terminology cleanup, and tighten up a security check by checking full identity of peers instead of just address.
11 years ago
Adam Ierymenko
ecb6a1d84f
docs
11 years ago
Adam Ierymenko
5341e32729
Fix to GitHub issue #140 -- network preferred relays. Also go ahead and allow RENDEZVOUS from regular peers.
11 years ago
Adam Ierymenko
318c2f025b
Call it _relays since there might be other kinds later.
11 years ago
Adam Ierymenko
5bc89034bc
Always ping / contact network preferred relays (if any).
11 years ago
Adam Ierymenko
9774f789f2
TCP fallback tunneling is now working. That hurt more than expected.
11 years ago
Adam Ierymenko
d9006712f6
Completely factor out "desperation" from the core. I thought of a significantly simpler way to move all of this logic entirely into the containing service, liberating the core from any concern over the nature of its pipe to the outside world.
11 years ago
Adam Ierymenko
1213073916
Apple auto-update stuff, now for Windows.
11 years ago
Adam Ierymenko
2810cd7c15
Build fixes for G++, building without SQLite3 present, and warning removal.
11 years ago
Kees Bos
a425bbc673
Renamed supernode to rootserver
11 years ago
Adam Ierymenko
b4b067bf12
So we need to keep track of external surface per reporter, since some NATs assign different external IPs for each external destination. Keeping just one known surface could create a race condition.
11 years ago
Adam Ierymenko
604576075e
Add some missing includes that older G++ cares about.
11 years ago
Adam Ierymenko
9a34fde8a5
Make sure identity.public exists and stays in sync, cleanup extra new in Node, and test script for local testnets.
11 years ago
Adam Ierymenko
f5848972f9
Windows now builds and runs selftest correctly, and fixed a Windows (and possibly other platforms) issue in Phy<>.
11 years ago
Adam Ierymenko
54954f5b88
First pass of Windows cleanup and build fixes...
11 years ago
Adam Ierymenko
60f05518aa
(1) now builds and works on Linux, (2) fix a threading problem causing carsh on shutdown, (3) cleanup in selftest, re-enable Phy and Http tests.
11 years ago
Adam Ierymenko
d2503172d8
Add some additional detail to the peer record in CAPI and JSON control plane.
11 years ago
Adam Ierymenko
6369c264e2
Rename netconf to controller and NetworkConfigMaster to NetworkController for consistency.
11 years ago
Adam Ierymenko
1c9ca73065
Fix some deadlock issues, move awareness of broadcast subscription into core, other bug fixes.
11 years ago
Adam Ierymenko
c9af603b9f
Add beacon broadcasting back into Node.
11 years ago
Adam Ierymenko
1cfa67bbdd
Bunch more control plane work, and shelve old UI -- React FTW.
11 years ago
Adam Ierymenko
a2605561af
Basic control plane queries working.
11 years ago
Adam Ierymenko
b888e033c0
JSON control plane, almost done...
11 years ago
Adam Ierymenko
068d311ecc
TRACE compile fixes, other fixes, and it basically works! It says HELLO.
11 years ago
Adam Ierymenko
46ecad451c
Starting on new service/ code to encapsulate node/ with osdep/ stuff, and add a user pointer to the CAPI.
11 years ago
Adam Ierymenko
ccc73b920e
Node peer list function for CAPI, and some Peer cleanup.
11 years ago
Adam Ierymenko
d9e9b60a98
Node status and network list.
11 years ago
Adam Ierymenko
e34bc961db
Add awareness of online status, and put old OS-dep utils in OSUtils.
11 years ago
Adam Ierymenko
4d5a6a25d3
Add events for packet decode errors, etc., and re-implement TRACE as an event.
11 years ago
Adam Ierymenko
9d9d0ef12c
Rename StatusCallback to more descriptive EventCallback.
11 years ago
Adam Ierymenko
c894710ac1
Remove Logger.hpp references.
11 years ago
Adam Ierymenko
6de7996218
Math fix.
11 years ago
Adam Ierymenko
49f031ccb4
Tons of refactoring, change to desperation algorithm to use max of core or link, porting over core loop code from old Node.cpp to new CAPI version, etc.
11 years ago
Adam Ierymenko
9e55f882d3
Starting to port from old Node() -- identity generation.
11 years ago
Adam Ierymenko
8210ed4805
Implement read from object store.
11 years ago
Adam Ierymenko
a2821e9000
Add code to check external surface against reported surface from other trusted peers, and also rename ExternalSurface to SelfAwareness because lulz.
11 years ago
Adam Ierymenko
51f46a009a
Multicast group join/leave and group membership announcement.
11 years ago
Adam Ierymenko
8001b2c0cb
Network now calls port config function as per new API.
11 years ago
Adam Ierymenko
5f351f2f6b
build fixes.
11 years ago
Adam Ierymenko
f4fd2d4971
Bring IncomingPacket into line with new changes.
11 years ago
Adam Ierymenko
6eb9289367
Bunch more cleanup, improvements to NAT traversal logic, finished updating Switch.
11 years ago
Adam Ierymenko
ee0f56355b
Send path simplification.
11 years ago
Adam Ierymenko
a69e1876f1
The concept of link desperation (escalating to less desirable transports) simplifies a ton of stuff. Loads of spaghetti logic can die since we no longer have to make these decisions down in the core.
11 years ago
Adam Ierymenko
1f28ce3980
Tons more refactoring: simplify Network, move explicit management of Tap out, redo COM serialization, etc.
11 years ago
Adam Ierymenko
49349470a0
...
11 years ago
Adam Ierymenko
8130848020
More refactoring... and update the API a bit... turns out my strategy for reducing indirect function calls also increased memcpy()s which are more expensive. This is simpler and faster.
11 years ago
Adam Ierymenko
b723855751
Refactoring... lalalala...
11 years ago
Adam Ierymenko
36eab4f1a9
Whole heap more cleanup and refactoring...
11 years ago