8 // Abstracts the utp Socket, so the implementation can be selected from
10 type utpSocket interface {
11 Accept() (net.Conn, error)
15 ReadFrom([]byte) (int, net.Addr, error)
16 SetDeadline(time.Time) error
17 SetWriteDeadline(time.Time) error
18 SetReadDeadline(time.Time) error
19 WriteTo([]byte, net.Addr) (int, error)
20 DialTimeout(string, time.Duration) (net.Conn, error)
21 Dial(string) (net.Conn, error)