Changeset 50 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Aug 3, 2006, 5:36:57 PM (16 years ago)
Author:
stoecker
Message:

some icc changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/NtripLinuxServer.c

    r49 r50  
    4141 */
    4242
    43 /* $Id: NtripLinuxServer.c,v 1.20 2006/07/27 14:07:15 stoecker Exp $
     43/* $Id: NtripLinuxServer.c,v 1.21 2006/08/03 15:10:33 stoecker Exp $
    4444 * Changes - Version 0.7
    4545 * Sep 22 2003  Steffen Tschirpke <St.Tschirpke@actina.de>
     
    585585
    586586  /* ----- main part ----- */
    587   while(1)
     587  for(;;)
    588588  {
    589589    if(!(he = gethostbyname(outhost)))
     
    631631    {
    632632      fprintf(stderr, "ERROR: could not send to caster\n");
    633       close(sock_id);
    634       sleep(5);
    635       exit(0);
     633      break;
    636634    }
    637635    /* check caster's response */
     
    647645      }
    648646      fprintf(stderr, "\n");
    649       close(sock_id);
    650       sleep(5);
    651       exit(0);
     647      break;
    652648    }
    653649    printf("connection successfull\n");
    654650    send_receive_loop(sock_id, gpsfd);
    655651  }
    656   exit(0);
     652  close(sock_id);
     653  sleep(5);
     654  return 0;
    657655}
    658656
Note: See TracChangeset for help on using the changeset viewer.