- rcf.zip
- RCF
- demo
- vs2003
- RCF
- doc
- include
- RCF
- SF
- license.txt
- src
- RCF
- SF
- test
- vs2003
- RCF
- RCF.sln
- RCF
- RCF.vcproj
- RCFTest
- RCFTest.vcproj
|
#include <boost/test/minimal.hpp>
#include <RCF/RCF.hpp>
#include <RCF/util/CommandLine.hpp>
#include <RCF/util/PortNumbers.hpp>
int test_main(int argc, char **argv)
{
util::CommandLineOption<std::string> ip("ip", "localhost", "endpoint server ip");
util::CommandLineOption<int> port("port", util::Ports::getCurrent(), "endpoint server port number");
util::CommandLineOption<std::string> endpoint("endpoint", "MyEndpoint", "endpoint name");
util::CommandLine::getSingleton().parse(argc, argv);
RCF::RcfServer server(ip, port, endpoint);
server.start();
return 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Software developer, from Sweden and now living in Canberra, Australia, working on distributed C++ applications. When he is not programming, Jarl enjoys skiing and playing table tennis. He derives immense satisfaction from referring to himself in third person.