forked from holoplot/go-avahi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
78 lines (70 loc) · 1.15 KB
/
types.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package avahi
// Domain ...
type Domain struct {
Interface int32
Protocol int32
Domain string
Flags uint32
}
// HostName ...
type HostName struct {
Interface int32
Protocol int32
Name string
Aprotocol int32
Address string
Flags uint32
}
// Address ...
type Address struct {
Interface int32
Protocol int32
Aprotocol int32
Address string
Name string
Flags uint32
}
// ServiceType ...
type ServiceType struct {
Interface int32
Protocol int32
Type string
Domain string
Flags uint32
}
// Service ...
type Service struct {
Interface int32
Protocol int32
Name string
Type string
Domain string
Host string
Aprotocol int32
Address string
Port int16
Txt [][]byte
Flags uint32
}
// Record ...
type Record struct {
Interface int32
Protocol int32
Name string
Class int16
Type int16
Rdata []byte
Flags uint32
}
const (
// ProtoInet - IPv4
ProtoInet = 0
// ProtoInet6 - IPv6
ProtoInet6 = 1
// ProtoUnspec - Unspecified/all protocol(s)
ProtoUnspec = -1
)
const (
// InterfaceUnspec - Unspecified/all interface(s)
InterfaceUnspec = -1
)