Changeset 1573 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Feb 11, 2009, 11:20:32 AM (11 years ago)
Author:
stoecker
Message:

added connection end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r1570 r1573  
    11/*
    2  * $Id: ntripserver.c,v 1.45 2008/09/11 09:18:23 stuerze Exp $
     2 * $Id: ntripserver.c,v 1.46 2009/02/10 12:20:09 stoecker Exp $
    33 *
    44 * Copyright (c) 2003...2007
     
    3737
    3838/* CVS revision and version */
    39 static char revisionstr[] = "$Revision: 1.45 $";
    40 static char datestr[]     = "$Date: 2008/09/11 09:18:23 $";
     39static char revisionstr[] = "$Revision: 1.46 $";
     40static char datestr[]     = "$Date: 2009/02/10 12:20:09 $";
    4141
    4242#include <ctype.h>
     
    15781578        nBufferBytes = 0;
    15791579      i = recv(socket_tcp, rtpbuf, sizeof(rtpbuf), 0);
    1580       if(i >= 12 && (unsigned char)rtpbuf[0] == (2 << 6) && rtpbuf[1] >= 96
    1581       && rtpbuf[1] <= 98 && rtpssrc ==
     1580      if(i >= 12 && (unsigned char)rtpbuf[0] == (2 << 6) && rtpssrc ==
    15821581      (((unsigned char)rtpbuf[8]<<24)+((unsigned char)rtpbuf[9]<<16)
    15831582      +((unsigned char)rtpbuf[10]<<8)+(unsigned char)rtpbuf[11]))
    15841583      {
    1585         rtptime = time(0);
     1584        if(rtpbuf[1] == 96)
     1585            rtptime = time(0);
     1586        else if(rtpbuf[1] == 98)
     1587        {
     1588            fprintf(stderr, "Connection end\n");
     1589            return;
     1590        }
    15861591      }
    15871592      else if(time(0) > rtptime+60)
Note: See TracChangeset for help on using the changeset viewer.