Last change
on this file since 12060 was 12060, checked in by hock@…, 11 years ago |
Reintegrate branch: 20130111-hock-message_classes
improvements:
- new message classes (reboost, zero-copy)
- "fast path" for direct links (skip overlay layer)
- link-properties accessible from the application
- SystemQueue can call boost::bind functions
- protlib compatibility removed (32bit overhead saved in every message)
- addressing2
- AddressDiscovery discoveres only addresses on which we're actually listening
- ariba serialization usage reduced (sill used in OverlayMsg)
- Node::connect, easier and cleaner interface to start-up ariba from the application
- ariba configs via JSON, XML, etc (boost::property_tree)
- keep-alive overhead greatly reduced
- (relayed) overlay links can actually be closed now
- lost messages are detected in most cases
- notification to the application when link is transformed into direct-link
- overlay routing: send message to second best hop if it would be dropped otherwise
- SequenceNumbers (only mechanisms, so for: upward compatibility)
- various small fixes
regressions:
- bluetooth is not yet working again
- bootstrap modules deactivated
- liblog4xx is not working (use cout-logging)
This patch brings great performance and stability improvements at cost of backward compatibility.
Also bluetooth and the bootstrap modules have not been ported to the new interfaces, yet.
|
File size:
614 bytes
|
Line | |
---|
1 | #include <string>
|
---|
2 | #include "ariba/utility/system/StartupWrapper.h"
|
---|
3 | #include "PingPong.h"
|
---|
4 |
|
---|
5 | using std::string;
|
---|
6 | using ariba::utility::StartupWrapper;
|
---|
7 | using ariba::application::pingpong::PingPong;
|
---|
8 |
|
---|
9 | int main( int argc, char** argv ) {
|
---|
10 |
|
---|
11 | // get config file
|
---|
12 | string config;
|
---|
13 | if (argc >= 2) config = argv[1];
|
---|
14 |
|
---|
15 | // StartupWrapper::initConfig( config );
|
---|
16 | StartupWrapper::startSystem();
|
---|
17 |
|
---|
18 | // this will do the main functionality and block
|
---|
19 | PingPong ping(config);
|
---|
20 | StartupWrapper::startup(&ping);
|
---|
21 |
|
---|
22 | // --> we will run blocking until <enter> is hit
|
---|
23 |
|
---|
24 | StartupWrapper::shutdown(&ping);
|
---|
25 | StartupWrapper::stopSystem();
|
---|
26 |
|
---|
27 | return 0;
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.