WebRTC之OnReadPacket(port.cc)

port.cc文件

// Represents a communication link between a port on the local client and a
// port on the remote client.
class Connection : public CandidatePairInterface,
                   public rtc::MessageHandler,
                   public sigslot::has_slots<>{
                   };

void Connection::OnReadPacket(const char* data,
                              size_t size,
                              int64_t packet_time_us) {}
  • 可能是ios使用

// Represents a local communication mechanism that can be used to create
// connections to similar mechanisms of the other client.  Subclasses of this
// one add support for specific mechanisms like local UDP ports.
class Port : public PortInterface,
             public rtc::MessageHandler,
             public sigslot::has_slots<> {
             };
void Port::OnReadPacket(const char* data,
                        size_t size,
                        const rtc::SocketAddress& addr,
                        ProtocolType proto) {}
  • 可能是android使用
上一篇:STM32的RTC中断标志只能手动清除


下一篇:java密钥长度受限制问题解决