- Timestamp:
- Apr 4, 2008, 12:03:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r654 r765 1 1 /* 2 * $Id: ntripserver.c,v 1.3 7 2008/01/04 15:23:06stuerze Exp $2 * $Id: ntripserver.c,v 1.38 2008/01/08 11:20:01 stuerze Exp $ 3 3 * 4 4 * Copyright (c) 2003...2007 … … 37 37 38 38 /* CVS revision and version */ 39 static char revisionstr[] = "$Revision: 1.3 7$";40 static char datestr[] = "$Date: 2008/01/0 4 15:23:06$";39 static char revisionstr[] = "$Revision: 1.38 $"; 40 static char datestr[] = "$Date: 2008/01/08 11:20:01 $"; 41 41 42 42 #include <ctype.h> … … 132 132 /* Forward references */ 133 133 static void send_receive_loop(sockettype sock, int outmode, 134 struct sockaddr * pcasterRTP, socklen_t length );134 struct sockaddr * pcasterRTP, socklen_t length, int rtpssrc); 135 135 static void usage(int, char *); 136 136 static int encode(char *buf, int size, const char *user, const char *pwd); … … 442 442 " BETA AND MAY BE CHANGED ***\n\n"); 443 443 } 444 444 445 445 if(*ntrip_str && (outputmode == NTRIP1)) 446 446 { … … 924 924 } 925 925 #endif 926 send_receive_loop(socket_tcp, outputmode, NULL, 0 );926 send_receive_loop(socket_tcp, outputmode, NULL, 0, 0); 927 927 input_init = output_init = 0; 928 928 break; … … 993 993 } 994 994 #endif 995 send_receive_loop(socket_tcp, outputmode, NULL, 0 );995 send_receive_loop(socket_tcp, outputmode, NULL, 0, 0); 996 996 input_init = output_init = 0; 997 997 break; … … 1121 1121 server_port = atoi(tok_buf[10]); 1122 1122 nBufferBytes = snprintf(szSendBuffer, sizeof(szSendBuffer), 1123 " POSTrtsp://%s%s/%s RTSP/1.0\r\n"1123 "RECORD rtsp://%s%s/%s RTSP/1.0\r\n" 1124 1124 "CSeq: 2\r\n" 1125 1125 "Session: %d\r\n" … … 1162 1162 len = (socklen_t)sizeof(casterRTP); 1163 1163 send_receive_loop(socket_udp, outputmode, (struct sockaddr *)&casterRTP, 1164 (socklen_t)len );1164 (socklen_t)len, session); 1165 1165 break; 1166 1166 } … … 1169 1169 input_init = output_init = 0; 1170 1170 break; 1171 } 1171 } 1172 1172 } 1173 1173 close_session(casterouthost, mountpoint, cseq, session, rtsp_extension, 0); … … 1180 1180 1181 1181 static void send_receive_loop(sockettype sock, int outmode, struct sockaddr* pcasterRTP, 1182 socklen_t length )1182 socklen_t length, int rtpssrc) 1183 1183 { 1184 1184 int nodata = 0; … … 1194 1194 long int sendtimediff; 1195 1195 int rtpseq = 0; 1196 int rtpssrc = 0;1197 1196 int rtptime = 0; 1198 1197 … … 1359 1358 rtpseq = rand(); 1360 1359 rtptime = rand(); 1361 rtpssrc = rand();1362 1360 last = now; 1363 1361 isfirstpacket = 0;
Note:
See TracChangeset
for help on using the changeset viewer.