Changeset 51 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Aug 16, 2006, 10:33:04 AM (16 years ago)
Author:
stoecker
Message:

now aborts correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/NtripLinuxServer.c

    r50 r51  
    4141 */
    4242
    43 /* $Id: NtripLinuxServer.c,v 1.21 2006/08/03 15:10:33 stoecker Exp $
     43/* $Id: NtripLinuxServer.c,v 1.22 2006/08/03 15:36:57 stoecker Exp $
    4444 * Changes - Version 0.7
    4545 * Sep 22 2003  Steffen Tschirpke <St.Tschirpke@actina.de>
     
    657657static void send_receive_loop(int sock, int fd)
    658658{
     659  int nodata = 0;
    659660  char buffer[BUFSZ] = { 0 };
    660661  char sisnetbackbuffer[200];
     
    664665  while(1)
    665666  {
    666     alarm(ALARMTIME);
     667    if(!nodata) alarm(ALARMTIME);
     668    else nodata = 0;
    667669
    668670    if(!nBufferBytes)
     
    689691        printf("WARNING: no data received from input\n");
    690692        sleep(3);
     693        nodata = 1;
    691694        continue;
    692695      }
Note: See TracChangeset for help on using the changeset viewer.