1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

address family interface

This commit is contained in:
v2ray 2016-08-14 17:07:52 +02:00
parent bcd27ba36f
commit a2651f4dfc
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -12,6 +12,14 @@ var (
AnyIP = IPAddress([]byte{0, 0, 0, 0})
)
type AddressFamily int
const (
AddressFamilyIPv4 = AddressFamily(0)
AddressFamilyIPv6 = AddressFamily(1)
AddressFamilyDomain = AddressFamily(2)
)
// Address represents a network address to be communicated with. It may be an IP address or domain
// address, not both. This interface doesn't resolve IP address for a given domain.
type Address interface {