Changeset 1573 in ntrip for trunk/ntripserver
- Timestamp:
- Feb 11, 2009, 11:20:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r1570 r1573 1 1 /* 2 * $Id: ntripserver.c,v 1.4 5 2008/09/11 09:18:23 stuerzeExp $2 * $Id: ntripserver.c,v 1.46 2009/02/10 12:20:09 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 5$";40 static char datestr[] = "$Date: 200 8/09/11 09:18:23$";39 static char revisionstr[] = "$Revision: 1.46 $"; 40 static char datestr[] = "$Date: 2009/02/10 12:20:09 $"; 41 41 42 42 #include <ctype.h> … … 1578 1578 nBufferBytes = 0; 1579 1579 i = recv(socket_tcp, rtpbuf, sizeof(rtpbuf), 0); 1580 if(i >= 12 && (unsigned char)rtpbuf[0] == (2 << 6) && rtpbuf[1] >= 96 1581 && rtpbuf[1] <= 98 && rtpssrc == 1580 if(i >= 12 && (unsigned char)rtpbuf[0] == (2 << 6) && rtpssrc == 1582 1581 (((unsigned char)rtpbuf[8]<<24)+((unsigned char)rtpbuf[9]<<16) 1583 1582 +((unsigned char)rtpbuf[10]<<8)+(unsigned char)rtpbuf[11])) 1584 1583 { 1585 rtptime = time(0); 1584 if(rtpbuf[1] == 96) 1585 rtptime = time(0); 1586 else if(rtpbuf[1] == 98) 1587 { 1588 fprintf(stderr, "Connection end\n"); 1589 return; 1590 } 1586 1591 } 1587 1592 else if(time(0) > rtptime+60)
Note:
See TracChangeset
for help on using the changeset viewer.