-
Notifications
You must be signed in to change notification settings - Fork 3
/
other.go
40 lines (31 loc) · 789 Bytes
/
other.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// +build !linux,!freebsd,!openbsd,!netbsd,!darwin
package main
import (
"fmt"
"net"
"time"
)
type RawAddr struct {
HardwareAddr net.HardwareAddr
Addr net.IP
Port int
Device string
}
type RawConn struct {
Local *RawAddr
}
func NewRawConn(bind *RawAddr) (rc *RawConn, err error) {
return nil, fmt.Errorf("not implemented")
}
func (rc *RawConn) SetReadDeadline(deadline time.Time) error {
return fmt.Errorf("not implemented")
}
func (rc *RawConn) ReadFrom(data []byte) (read int, from *RawAddr, err error) {
return 0, nil, fmt.Errorf("not implemented")
}
func (rc *RawConn) WriteTo(from, to *RawAddr, data []byte) (written int, err error) {
return 0, fmt.Errorf("not implemented")
}
func BindToDevice(handle int, name string) error {
return nil
}