Index: webrtc/p2p/base/pseudotcp.cc |
diff --git a/webrtc/p2p/base/pseudotcp.cc b/webrtc/p2p/base/pseudotcp.cc |
index 6281315dc1769e86ae526d283c4d386016d7250f..1dfdcbb8944f9431f2512d0c2578ec9a18bbec82 100644 |
--- a/webrtc/p2p/base/pseudotcp.cc |
+++ b/webrtc/p2p/base/pseudotcp.cc |
@@ -1168,7 +1168,7 @@ PseudoTcp::disableWindowScale() { |
void |
PseudoTcp::queueConnectMessage() { |
- rtc::ByteBuffer buf(rtc::ByteBuffer::ORDER_NETWORK); |
+ rtc::ByteBufferWriter buf(rtc::ByteBuffer::ORDER_NETWORK); |
buf.WriteUInt8(CTL_CONNECT); |
if (m_support_wnd_scale) { |
@@ -1185,7 +1185,7 @@ void PseudoTcp::parseOptions(const char* data, uint32_t len) { |
// See http://www.freesoft.org/CIE/Course/Section4/8.htm for |
// parsing the options list. |
- rtc::ByteBuffer buf(data, len); |
+ rtc::ByteBufferReader buf(data, len); |
while (buf.Length()) { |
uint8_t kind = TCP_OPT_EOL; |
buf.ReadUInt8(&kind); |