Home
last modified time | relevance | path

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

/external/chromium_org/third_party/webrtc/base/
Dasynctcpsocket.cc28 static const size_t kPacketLenSize = sizeof(PacketLength); variable
30 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize;
260 AppendToOutBuffer(&pkt_len, kPacketLenSize); in Send()
278 if (*len < kPacketLenSize) in ProcessInput()
282 if (*len < kPacketLenSize + pkt_len) in ProcessInput()
285 SignalReadPacket(this, data + kPacketLenSize, pkt_len, remote_addr, in ProcessInput()
288 *len -= kPacketLenSize + pkt_len; in ProcessInput()
290 memmove(data, data + kPacketLenSize + pkt_len, *len); in ProcessInput()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dasynctcpsocket.cc45 static const size_t kPacketLenSize = sizeof(PacketLength); variable
47 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize;
277 AppendToOutBuffer(&pkt_len, kPacketLenSize); in Send()
295 if (*len < kPacketLenSize) in ProcessInput()
299 if (*len < kPacketLenSize + pkt_len) in ProcessInput()
302 SignalReadPacket(this, data + kPacketLenSize, pkt_len, remote_addr, in ProcessInput()
305 *len -= kPacketLenSize + pkt_len; in ProcessInput()
307 memmove(data, data + kPacketLenSize + pkt_len, *len); in ProcessInput()
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dasyncstuntcpsocket.cc41 static const size_t kPacketLenSize = sizeof(PacketLength); variable
70 if (cb > kBufSize || cb < kPacketLenSize + kPacketLenOffset) { in Send()
117 if (*len < kPacketLenOffset + kPacketLenSize) in ProcessInput()