Changeset 9454 in ntrip
- Timestamp:
- Jun 7, 2021, 3:45:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r9453 r9454 922 922 923 923 if (outputmode == TCPIP) { 924 caster.sin_addr.s_addr = INADDR_ANY; 924 925 // Forcefully attaching socket to the local port 925 926 if (bind(socket_tcp, (struct sockaddr *)&caster, sizeof(caster)) < 0) { … … 933 934 int addrlen = sizeof(caster); 934 935 if ((local_socket_tcp = accept(socket_tcp, (struct sockaddr *)&caster, 935 (socklen_t*)&addrlen)) < 0) 936 (socklen_t*)&addrlen)) < 0) { 936 937 perror("accept"); 937 break; ;938 break; 938 939 } 939 940 } … … 1559 1560 strcpy(buffer, ""); 1560 1561 memcpy(buffer, chunkBytes, (size_t) nChunkBytes); 1561 nBufferBytes = nChunkBytes; 1562 nBufferBytes = nChunkBytes;fprintf(stderr, "%s", buffer); 1562 1563 } 1563 1564 } … … 1582 1583 nBufferBytes = 0; 1583 1584 } 1584 } else if ((nBufferBytes) && (outmode == UDP)) { 1585 } 1586 else if ((nBufferBytes) && (outmode == UDP)) { 1585 1587 char rtpbuf[1592]; 1586 1588 int i;
Note:
See TracChangeset
for help on using the changeset viewer.