Changeset 16 in ntrip for trunk/ntripserver/NtripLinuxServer.c


Ignore:
Timestamp:
Mar 21, 2005, 2:02:47 PM (20 years ago)
Author:
stoecker
Message:

minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/NtripLinuxServer.c

    r15 r16  
    4141 */
    4242
    43 /* $Id: NtripLinuxServer.c,v 1.6 2005/02/16 15:23:36 stoecker Exp $
     43/* $Id: NtripLinuxServer.c,v 1.7 2005/02/17 09:22:23 stoecker Exp $
    4444 * Changes -  Version 0.7
    4545 * Thu Sep 22 08:10:45  2003    actina AG <http://www.actina.de>
     
    137137  struct sockaddr_in in_addr;
    138138  struct sockaddr_in out_addr;
     139
     140  if(!(outhost = gethostbyname(NTRIP_CASTER)))
     141  {
     142    fprintf(stderr, "host %s unknown\n\n", NTRIP_CASTER);
     143  }
     144  else
     145  {
     146    memset((char *) &out_addr, 0x00, sizeof(out_addr));
     147    memcpy(&out_addr.sin_addr, outhost->h_addr, outhost->h_length);
     148  }
    139149
    140150  //get and check program arguments
Note: See TracChangeset for help on using the changeset viewer.