/****************************************************************************/
/* Copyright (c) 2001 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : _ips4Server.cc                                                */
/* Author   : Rich Henthorn                                                 */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02 Jn 01                                                      */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*--------------------------------------------------------------------------*/

#include "Ips4Server.h"
#include "Syslog.h"
#include "System.cc"
#include "SerialParameters.h"

int main( int argc, char **argv )
{
  Ips4Server *ips4Server;

  // Set task priority
  if (System::setTaskPriority(CriticalServerPriority) == -1)
    return 1;

  try {
    SerialParameters serialParams(&argc, argv);
    ips4Server = new Ips4Server("ips4", &serialParams);
    ips4Server->run();
  }
  catch( SharedObject::Error e ) {
    Syslog::write("ips4Server -- Caught exception: %s\n", e.msg );
  }
  catch( ... ) {
    Syslog::write("ips4Server -- Caught exception!\n");
  }

  delete ips4Server;

  return 0;
}
