[Live-devel] void RTPInterface::sendPacket

freegnu freegnu at 163.com
Thu Oct 19 20:54:30 PDT 2006


hi, all, im reading the code, and i find int the function
-- void RTPInterface::sendPacket(unsigned char* packet, unsigned packetSize) --

  // Normal case: Send as a UDP packet:
  fGS->output(envir(), fGS->ttl(), packet, packetSize);

  // Also, send over each of our TCP sockets:
  for (tcpStreamRecord* streams = fTCPStreams; streams != NULL;
       streams = streams->fNext) {
    
    sendRTPOverTCP(packet, packetSize,
     streams->fStreamSocketNum, streams->fStreamChannelId);
 }

why it have to send a UDP packet and over TCP socket?
but it seems the RTCP uses UDP also and its port is the RTP port number + 1;






More information about the live-devel mailing list