Changeset 326 in ntrip for trunk/rtcm3torinex/rtcm3torinex.c


Ignore:
Timestamp:
Nov 23, 2006, 3:39:50 PM (17 years ago)
Author:
stoecker
Message:

switched to port 2101

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rtcm3torinex/rtcm3torinex.c

    r325 r326  
    11/*
    22  Converter for RTCM3 data to RINEX.
    3   $Id: rtcm3torinex.c,v 1.10 2006/11/15 12:31:31 stoecker Exp $
     3  $Id: rtcm3torinex.c,v 1.11 2006/11/21 08:27:35 stoecker Exp $
    44  Copyright (C) 2005-2006 by Dirk Stoecker <stoecker@euronik.eu>
    55
     
    5151
    5252/* CVS revision and version */
    53 static char revisionstr[] = "$Revision: 1.10 $";
     53static char revisionstr[] = "$Revision: 1.11 $";
    5454
    5555static uint32_t CRC24(long size, const unsigned char *buf)
     
    989989
    990990#ifndef NO_RTCM3_MAIN
    991 static char datestr[]     = "$Date: 2006/11/15 12:31:31 $";
     991static char datestr[]     = "$Date: 2006/11/21 08:27:35 $";
    992992
    993993/* The string, which is send as agent in HTTP request */
     
    11541154
    11551155  args->server = "www.euref-ip.net";
    1156   args->port = 80;
     1156  args->port = 2101;
    11571157  args->user = "";
    11581158  args->password = "";
     
    12121212    " -s " LONG_OPT("--server     ") "the server name or address\n"
    12131213    " -p " LONG_OPT("--password   ") "the login password\n"
    1214     " -r " LONG_OPT("--port       ") "the server port number (default 80)\n"
     1214    " -r " LONG_OPT("--port       ") "the server port number (default 2101)\n"
    12151215    " -u " LONG_OPT("--user       ") "the user name\n"
    12161216    "or using an URL:\n%s ntrip:mountpoint[/username[:password]][@server[:port]]\n"
     
    12861286    if(!(he=gethostbyname(args.server)))
    12871287    {
    1288       perror("gethostbyname");
     1288      RTCM3Error("Function gethostbyname: %s\n", strerror(errno));
    12891289      exit(1);
    12901290    }
    12911291    if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    12921292    {
    1293       perror("socket");
     1293      RTCM3Error("Function socket: %s\n", strerror(errno));
    12941294      exit(1);
    12951295    }
     
    13011301    sizeof(struct sockaddr)) == -1)
    13021302    {
    1303       perror("connect");
     1303      RTCM3Error("Function connect: %s\n", strerror(errno));
    13041304      exit(1);
    13051305    }
     
    13441344    if(send(sockfd, buf, (size_t)i, 0) != i)
    13451345    {
    1346       perror("send");
     1346      RTCM3Error("Function send: %s\n", strerror(errno));
    13471347      exit(1);
    13481348    }
Note: See TracChangeset for help on using the changeset viewer.