9 // Abstracts the utp Socket, so the implementation can be selected from
10 // different packages.
11 type utpSocket interface {
12 Accept() (net.Conn, error)
16 ReadFrom([]byte) (int, net.Addr, error)
17 SetDeadline(time.Time) error
18 SetWriteDeadline(time.Time) error
19 SetReadDeadline(time.Time) error
20 WriteTo([]byte, net.Addr) (int, error)
21 DialContext(ctx context.Context, addr string) (net.Conn, error)
22 Dial(addr string) (net.Conn, error)