/[svn]/linuxsampler/trunk/src/testcases/LSCPTest.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/testcases/LSCPTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 675 by schoenebeck, Sat May 21 11:47:55 2005 UTC revision 676 by schoenebeck, Wed Jun 22 22:13:08 2005 UTC
# Line 77  bool LSCPTest::launchLSCPServer() { Line 77  bool LSCPTest::launchLSCPServer() {
77      const long timeout_seconds = 10; // we give the server max. 10 seconds to startup, otherwise we declare the startup as failed      const long timeout_seconds = 10; // we give the server max. 10 seconds to startup, otherwise we declare the startup as failed
78      try {      try {
79          pSampler    = new Sampler;          pSampler    = new Sampler;
80          pLSCPServer = new LSCPServer(pSampler);          pLSCPServer = new LSCPServer(pSampler, htonl(LSCP_ADDR), htons(LSCP_PORT));
81          pLSCPServer->StartThread();          pLSCPServer->StartThread();
82          int res = pLSCPServer->WaitUntilInitialized(timeout_seconds);          int res = pLSCPServer->WaitUntilInitialized(timeout_seconds);
83          if (res < 0) throw;          if (res < 0) throw;

Legend:
Removed from v.675  
changed lines
  Added in v.676

  ViewVC Help
Powered by ViewVC