Commit 514be847 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

A bit of a better output for server test

parent fed2471c
......@@ -19,6 +19,8 @@
#include <VistaBase/VistaTimeUtils.h>
using namespace std;
int main( int, char** )
{
IVANetServer* pServer = IVANetServer::Create();
......@@ -58,12 +60,14 @@ int main( int, char** )
if( pServer->Initialize( sServerIP, iPort, liFreePorts ) != IVANetServer::VA_NO_ERROR )
{
return -1;
cerr << "Could not initialize server" << endl;
return 255;
}
while( true )
{
VistaTimeUtils::Sleep( 1000 );
cout << "Sleeping for a while now ... it CTRL+C to abort." << endl;
VistaTimeUtils::Sleep( 2000 );
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment