|
reSIProcate/stack
9694
|
#include <sys/time.h>#include <unistd.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <sys/types.h>#include <iostream>#include <memory>#include "resip/stack/Helper.hxx"#include "resip/stack/SipMessage.hxx"#include "resip/stack/Uri.hxx"#include "resip/stack/SipStack.hxx"#include "resip/stack/DeprecatedDialog.hxx"#include "rutil/Logger.hxx"#include "rutil/ThreadIf.hxx"
Go to the source code of this file.
Classes | |
| class | Client |
| class | Server |
Defines | |
| #define | RESIPROCATE_SUBSYSTEM Subsystem::SIP |
Functions | |
| int | main (int argc, char *argv[]) |
| #define RESIPROCATE_SUBSYSTEM Subsystem::SIP |
Definition at line 32 of file testLockStep.cxx.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 177 of file testLockStep.cxx.
References resip::SipStack::addTransport(), client, resip::Log::Cout, resip::Log::Debug, InfoLog, resip::Log::initialize(), resip::ThreadIf::join(), resip::ThreadIf::run(), server, resip::TCP, and resip::Log::toLevel().
{
Log::initialize(Log::Cout, argc > 1 ? Log::toLevel(argv[1]) : Log::Debug, argv[0]);
Log::toLevel( Data("DEBUG") );
SipStack stack1;
stack1.addTransport(TCP, 5070);
SipStack stack2;
stack2.addTransport(TCP, 5080);
Client client(stack1);
::Server server(stack2);
client.run();
server.run();
client.join();
server.join();
InfoLog(<< "Test failed.");
return 0;
}

1.7.5.1