Home | History | Annotate | Download | only in quic
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "net/tools/quic/quic_default_packet_writer.h"
      6 
      7 #include "net/tools/quic/quic_socket_utils.h"
      8 
      9 namespace net {
     10 namespace tools {
     11 
     12 QuicDefaultPacketWriter::QuicDefaultPacketWriter(int fd) : fd_(fd) {}
     13 
     14 QuicDefaultPacketWriter::~QuicDefaultPacketWriter() {}
     15 
     16 WriteResult QuicDefaultPacketWriter::WritePacket(
     17     const char* buffer, size_t buf_len,
     18     const net::IPAddressNumber& self_address,
     19     const net::IPEndPoint& peer_address,
     20     QuicBlockedWriterInterface* blocked_writer) {
     21   return QuicSocketUtils::WritePacket(fd_, buffer, buf_len,
     22                                       self_address, peer_address);
     23 }
     24 
     25 bool QuicDefaultPacketWriter::IsWriteBlockedDataBuffered() const {
     26   return false;
     27 }
     28 
     29 }  // namespace tools
     30 }  // namespace net
     31