Changeset 765 in ntrip for trunk/ntripserver


Ignore:
Timestamp:
Apr 4, 2008, 12:03:11 PM (17 years ago)
Author:
stoecker
Message:

NTRIP2 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r654 r765  
    11/*
    2  * $Id: ntripserver.c,v 1.37 2008/01/04 15:23:06 stuerze Exp $
     2 * $Id: ntripserver.c,v 1.38 2008/01/08 11:20:01 stuerze Exp $
    33 *
    44 * Copyright (c) 2003...2007
     
    3737
    3838/* CVS revision and version */
    39 static char revisionstr[] = "$Revision: 1.37 $";
    40 static char datestr[]     = "$Date: 2008/01/04 15:23:06 $";
     39static char revisionstr[] = "$Revision: 1.38 $";
     40static char datestr[]     = "$Date: 2008/01/08 11:20:01 $";
    4141
    4242#include <ctype.h>
     
    132132/* Forward references */
    133133static void send_receive_loop(sockettype sock, int outmode,
    134   struct sockaddr * pcasterRTP, socklen_t length);
     134  struct sockaddr * pcasterRTP, socklen_t length, int rtpssrc);
    135135static void usage(int, char *);
    136136static int  encode(char *buf, int size, const char *user, const char *pwd);
     
    442442      " BETA AND MAY BE CHANGED ***\n\n");
    443443  }
    444  
     444
    445445  if(*ntrip_str && (outputmode == NTRIP1))
    446446  {
     
    924924          }
    925925#endif
    926           send_receive_loop(socket_tcp, outputmode, NULL, 0);
     926          send_receive_loop(socket_tcp, outputmode, NULL, 0, 0);
    927927          input_init = output_init = 0;
    928928          break;
     
    993993          }
    994994#endif
    995           send_receive_loop(socket_tcp, outputmode, NULL, 0);
     995          send_receive_loop(socket_tcp, outputmode, NULL, 0, 0);
    996996          input_init = output_init = 0;
    997997          break;
     
    11211121              server_port = atoi(tok_buf[10]);
    11221122              nBufferBytes = snprintf(szSendBuffer, sizeof(szSendBuffer),
    1123                 "POST rtsp://%s%s/%s RTSP/1.0\r\n"
     1123                "RECORD rtsp://%s%s/%s RTSP/1.0\r\n"
    11241124                "CSeq: 2\r\n"
    11251125                "Session: %d\r\n"
     
    11621162              len = (socklen_t)sizeof(casterRTP);
    11631163              send_receive_loop(socket_udp, outputmode, (struct sockaddr *)&casterRTP,
    1164               (socklen_t)len);
     1164              (socklen_t)len, session);
    11651165              break;
    11661166            }
     
    11691169          input_init = output_init = 0;
    11701170          break;
    1171       }     
     1171      }
    11721172    }
    11731173    close_session(casterouthost, mountpoint, cseq, session, rtsp_extension, 0);
     
    11801180
    11811181static void send_receive_loop(sockettype sock, int outmode, struct sockaddr* pcasterRTP,
    1182 socklen_t length)
     1182socklen_t length, int rtpssrc)
    11831183{
    11841184  int      nodata = 0;
     
    11941194  long int sendtimediff;
    11951195  int      rtpseq = 0;
    1196   int      rtpssrc = 0;
    11971196  int      rtptime = 0;
    11981197
     
    13591358        rtpseq = rand();
    13601359        rtptime = rand();
    1361         rtpssrc = rand();
    13621360        last = now;
    13631361        isfirstpacket = 0;
Note: See TracChangeset for help on using the changeset viewer.