Changeset 1811 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Apr 27, 2009, 11:49:54 AM (15 years ago)
Author:
stoecker
Message:

session id is unsigned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/ntripclient.c

    r1569 r1811  
    11/*
    22  NTRIP client for POSIX.
    3   $Id: ntripclient.c,v 1.46 2008/11/04 15:35:03 stoecker Exp $
     3  $Id: ntripclient.c,v 1.47 2009/02/10 12:18:23 stoecker Exp $
    44  Copyright (C) 2003-2008 by Dirk Stöcker <soft@dstoecker.de>
    55
     
    6565
    6666/* CVS revision and version */
    67 static char revisionstr[] = "$Revision: 1.46 $";
    68 static char datestr[]     = "$Date: 2008/11/04 15:35:03 $";
     67static char revisionstr[] = "$Revision: 1.47 $";
     68static char datestr[]     = "$Date: 2009/02/10 12:18:23 $";
    6969
    7070enum MODE { HTTP = 1, RTSP = 2, NTRIP1 = 3, AUTO = 4, UDP = 5, END };
     
    706706        if(args.mode == UDP)
    707707        {
    708           int session, tim, seq, init;
     708          unsigned int session;
     709          int tim, seq, init;
    709710          char rtpbuf[1526];
    710711          int i=12, j;
     
    875876                    {
    876877                      time_t ct;
    877                       int u,v,w;
     878                      int u,v;
     879                      unsigned int w;
    878880                      u = ((unsigned char)rtpbuf[2]<<8)+(unsigned char)rtpbuf[3];
    879881                      v = ((unsigned char)rtpbuf[4]<<24)+((unsigned char)rtpbuf[5]<<16)
     
    11451147                "PLAY rtsp://%s%s%s/%s RTSP/1.0\r\n"
    11461148                "CSeq: %d\r\n"
    1147                 "Session: %d\r\n"
     1149                "Session: %u\r\n"
    11481150                "\r\n",
    11491151                args.server, proxyserver ? ":" : "", proxyserver ? args.port : "",
     
    12391241                            "GET_PARAMETER rtsp://%s%s%s/%s RTSP/1.0\r\n"
    12401242                            "CSeq: %d\r\n"
    1241                             "Session: %d\r\n"
     1243                            "Session: %u\r\n"
    12421244                            "\r\n",
    12431245                            args.server, proxyserver ? ":" : "", proxyserver
     
    12901292                  "TEARDOWN rtsp://%s%s%s/%s RTSP/1.0\r\n"
    12911293                  "CSeq: %d\r\n"
    1292                   "Session: %d\r\n"
     1294                  "Session: %u\r\n"
    12931295                  "\r\n",
    12941296                  args.server, proxyserver ? ":" : "", proxyserver ? args.port : "",
Note: See TracChangeset for help on using the changeset viewer.