mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
21 lines
661 B
Go
21 lines
661 B
Go
package handshake
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
type conn struct {
|
|
localAddr, remoteAddr net.Addr
|
|
}
|
|
|
|
var _ net.Conn = &conn{}
|
|
|
|
func (c *conn) Read([]byte) (int, error) { return 0, nil }
|
|
func (c *conn) Write([]byte) (int, error) { return 0, nil }
|
|
func (c *conn) Close() error { return nil }
|
|
func (c *conn) RemoteAddr() net.Addr { return c.remoteAddr }
|
|
func (c *conn) LocalAddr() net.Addr { return c.localAddr }
|
|
func (c *conn) SetReadDeadline(time.Time) error { return nil }
|
|
func (c *conn) SetWriteDeadline(time.Time) error { return nil }
|
|
func (c *conn) SetDeadline(time.Time) error { return nil }
|