Changeset 9454 in ntrip


Ignore:
Timestamp:
Jun 7, 2021, 3:45:42 PM (3 months ago)
Author:
stuerze
Message:

data upload to localhost added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r9453 r9454  
    922922
    923923      if (outputmode == TCPIP) {
     924        caster.sin_addr.s_addr = INADDR_ANY;
    924925        // Forcefully attaching socket to the local port
    925926        if (bind(socket_tcp, (struct sockaddr *)&caster, sizeof(caster)) < 0)        {
     
    933934        int addrlen = sizeof(caster);
    934935        if ((local_socket_tcp = accept(socket_tcp, (struct sockaddr *)&caster,
    935                                       (socklen_t*)&addrlen)) < 0)        {
     936                                      (socklen_t*)&addrlen)) < 0) {
    936937            perror("accept");
    937             break;;
     938            break;
    938939        }
    939940      }
     
    15591560          strcpy(buffer, "");
    15601561          memcpy(buffer, chunkBytes, (size_t) nChunkBytes);
    1561           nBufferBytes = nChunkBytes;
     1562          nBufferBytes = nChunkBytes;fprintf(stderr, "%s", buffer);
    15621563        }
    15631564      }
     
    15821583        nBufferBytes = 0;
    15831584      }
    1584     } else if ((nBufferBytes) && (outmode == UDP)) {
     1585    }
     1586    else if ((nBufferBytes) && (outmode == UDP)) {
    15851587      char rtpbuf[1592];
    15861588      int i;
Note: See TracChangeset for help on using the changeset viewer.