Changeset 925 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
May 21, 2008, 10:01:20 AM (14 years ago)
Author:
stuerze
Message:

added fallback possibility without re-connect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r916 r925  
    11/*
    2  * $Id: ntripserver.c,v 1.41 2008/05/16 07:33:31 stoecker Exp $
     2 * $Id: ntripserver.c,v 1.42 2008/05/16 07:55:15 stoecker Exp $
    33 *
    44 * Copyright (c) 2003...2007
     
    3737
    3838/* CVS revision and version */
    39 static char revisionstr[] = "$Revision: 1.41 $";
    40 static char datestr[]     = "$Date: 2008/05/16 07:33:31 $";
     39static char revisionstr[] = "$Revision: 1.42 $";
     40static char datestr[]     = "$Date: 2008/05/16 07:55:15 $";
    4141
    4242#include <ctype.h>
     
    835835   
    836836    /* ----- main part ----- */
    837     int output_init = 1;
     837    int output_init = 1, fallback = 0;
    838838
    839839    while((input_init) && (output_init))
     
    881881      {
    882882        case NTRIP1: /*** OutputMode Ntrip Version 1.0 ***/
     883          fallback = 0;
    883884          nBufferBytes = snprintf(szSendBuffer, sizeof(szSendBuffer),
    884885            "SOURCE %s %s/%s\r\n"
     
    10771078                  close_session(casterouthost, mountpoint, session, rtsp_extension, 1);
    10781079                  outputmode = HTTP;
     1080                  fallback = 1;
    10791081                  break;
    10801082                }
     
    10921094                  close_session(casterouthost, mountpoint, session, rtsp_extension, 1);
    10931095                  outputmode = NTRIP1;
     1096                  fallback = 1;
    10941097                  break;
    10951098                }
     
    11711174    }
    11721175    close_session(casterouthost, mountpoint, session, rtsp_extension, 0);
    1173     if((reconnect_sec_max)  && (!sigint_received))
     1176    if( (reconnect_sec_max || fallback) && !sigint_received )
    11741177      reconnect_sec = reconnect(reconnect_sec, reconnect_sec_max);
    11751178    else inputmode = LAST;
Note: See TracChangeset for help on using the changeset viewer.