- Timestamp:
- Jun 8, 2021, 12:04:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r9459 r9460 1536 1536 i = chunksize; 1537 1537 } 1538 if (nChunkBytes <= nBufferBytes) {1538 // if (nChunkBytes <= nBufferBytes) { 1539 1539 memcpy(chunkBytes + nChunkBytes, buffer + pos, (size_t) i); 1540 1540 nChunkBytes += i; 1541 }1541 // } 1542 1542 totalbytes += i; 1543 1543 chunksize -= i; … … 1571 1571 if (i < 0) { 1572 1572 if (errno != EAGAIN) { 1573 perror("WARNING: could not send data to Destination caster"); 1574 if (outmode == NTRIP1) { 1575 return; 1576 } 1577 if (outmode == TCPIP) { 1578 memset((char*) &buffer, 0x00, sizeof(buffer)); 1579 nBufferBytes = 0; 1580 } 1573 perror("WARNING: could not send data to Destination caster or localhost"); 1574 return; 1581 1575 } 1582 1576 } else if (i) {
Note:
See TracChangeset
for help on using the changeset viewer.