Changeset 1811 in ntrip for trunk/ntripserver
- Timestamp:
- Apr 27, 2009, 11:49:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r1573 r1811 1 1 /* 2 * $Id: ntripserver.c,v 1.4 62009/02/10 12:20:09stoecker Exp $2 * $Id: ntripserver.c,v 1.47 2009/02/11 10:20:32 stoecker Exp $ 3 3 * 4 4 * Copyright (c) 2003...2007 … … 37 37 38 38 /* CVS revision and version */ 39 static char revisionstr[] = "$Revision: 1.4 6$";40 static char datestr[] = "$Date: 2009/02/1 0 12:20:09$";39 static char revisionstr[] = "$Revision: 1.47 $"; 40 static char datestr[] = "$Date: 2009/02/11 10:20:32 $"; 41 41 42 42 #include <ctype.h> … … 136 136 /* Forward references */ 137 137 static void send_receive_loop(sockettype sock, int outmode, 138 struct sockaddr * pcasterRTP, socklen_t length, int rtpssrc); 138 struct sockaddr * pcasterRTP, socklen_t length, unsigned int rtpssrc); 139 139 static void usage(int, char *); 140 140 static int encode(char *buf, int size, const char *user, const char *pwd); … … 220 220 int client_port = 0; 221 221 int server_port = 0; 222 intsession = 0;222 unsigned int session = 0; 223 223 socklen_t len = 0; 224 224 int i = 0; … … 933 933 case UDP: 934 934 { 935 int session; 935 unsigned int session; 936 936 char rtpbuf[1526]; 937 937 int i=12, j; … … 1317 1317 "RECORD rtsp://%s%s/%s RTSP/1.0\r\n" 1318 1318 "CSeq: %d\r\n" 1319 "Session: % d\r\n"1319 "Session: %u\r\n" 1320 1320 "\r\n", 1321 1321 casterouthost, rtsp_extension, mountpoint, udp_cseq++, … … 1374 1374 1375 1375 static void send_receive_loop(sockettype sock, int outmode, struct sockaddr* pcasterRTP, 1376 socklen_t length, int rtpssrc) 1376 socklen_t length, unsigned int rtpssrc) 1377 1377 { 1378 1378 int nodata = 0; … … 1579 1579 i = recv(socket_tcp, rtpbuf, sizeof(rtpbuf), 0); 1580 1580 if(i >= 12 && (unsigned char)rtpbuf[0] == (2 << 6) && rtpssrc == 1581 (((unsigned char)rtpbuf[8]<<24)+((unsigned char)rtpbuf[9]<<16) 1581 (unsigned int)(((unsigned char)rtpbuf[8]<<24)+((unsigned char)rtpbuf[9]<<16) 1582 1582 +((unsigned char)rtpbuf[10]<<8)+(unsigned char)rtpbuf[11])) 1583 1583 { … … 1694 1694 "GET_PARAMETER rtsp://%s%s/%s RTSP/1.0\r\n" 1695 1695 "CSeq: %d\r\n" 1696 "Session: % d\r\n"1696 "Session: %u\r\n" 1697 1697 "\r\n", 1698 1698 casterouthost, rtsp_extension, mountpoint, udp_cseq++, rtpssrc); … … 2282 2282 "TEARDOWN rtsp://%s%s/%s RTSP/1.0\r\n" 2283 2283 "CSeq: %d\r\n" 2284 "Session: % d\r\n"2284 "Session: %u\r\n" 2285 2285 "\r\n", 2286 2286 caster_addr, rtsp_ext, mountpoint, udp_cseq++, session);
Note:
See TracChangeset
for help on using the changeset viewer.