github.com/MerlinKodo/quic-go@v0.39.2/internal/handshake/conn.go (about)

     1  package handshake
     2  
     3  import (
     4  	"net"
     5  	"time"
     6  )
     7  
     8  type conn struct {
     9  	localAddr, remoteAddr net.Addr
    10  }
    11  
    12  var _ net.Conn = &conn{}
    13  
    14  func (c *conn) Read([]byte) (int, error)         { return 0, nil }
    15  func (c *conn) Write([]byte) (int, error)        { return 0, nil }
    16  func (c *conn) Close() error                     { return nil }
    17  func (c *conn) RemoteAddr() net.Addr             { return c.remoteAddr }
    18  func (c *conn) LocalAddr() net.Addr              { return c.localAddr }
    19  func (c *conn) SetReadDeadline(time.Time) error  { return nil }
    20  func (c *conn) SetWriteDeadline(time.Time) error { return nil }
    21  func (c *conn) SetDeadline(time.Time) error      { return nil }