Home
last modified time | relevance | path

Searched refs:kPacketLenSize (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/base/
Dasynctcpsocket.cc28 static const size_t kPacketLenSize = sizeof(PacketLength); variable
30 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize;
261 AppendToOutBuffer(&pkt_len, kPacketLenSize); in Send()
282 if (*len < kPacketLenSize) in ProcessInput()
286 if (*len < kPacketLenSize + pkt_len) in ProcessInput()
289 SignalReadPacket(this, data + kPacketLenSize, pkt_len, remote_addr, in ProcessInput()
292 *len -= kPacketLenSize + pkt_len; in ProcessInput()
294 memmove(data, data + kPacketLenSize + pkt_len, *len); in ProcessInput()
/external/webrtc/webrtc/p2p/base/
Dasyncstuntcpsocket.cc24 static const size_t kPacketLenSize = sizeof(PacketLength); variable
53 if (cb > kBufSize || cb < kPacketLenSize + kPacketLenOffset) { in Send()
100 if (*len < kPacketLenOffset + kPacketLenSize) in ProcessInput()