2017-01-02 14:52:45 -05:00
|
|
|
package net
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
2018-05-25 05:56:01 -04:00
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2017-04-02 08:24:10 -04:00
|
|
|
// Endpoint of a network connection.
|
2017-01-02 14:52:45 -05:00
|
|
|
type Endpoint struct {
|
2018-05-25 05:56:01 -04:00
|
|
|
Network Network `protobuf:"varint,1,opt,name=network,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
|
|
|
|
Address *IPOrDomain `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
|
|
|
|
Port uint32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Endpoint) Reset() { *m = Endpoint{} }
|
|
|
|
func (m *Endpoint) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Endpoint) ProtoMessage() {}
|
|
|
|
func (*Endpoint) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_destination_8cb120f3026d561e, []int{0}
|
|
|
|
}
|
|
|
|
func (m *Endpoint) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Endpoint.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *Endpoint) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Endpoint.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Endpoint) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Endpoint.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Endpoint) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Endpoint.DiscardUnknown(m)
|
2017-01-02 14:52:45 -05:00
|
|
|
}
|
|
|
|
|
2018-05-25 05:56:01 -04:00
|
|
|
var xxx_messageInfo_Endpoint proto.InternalMessageInfo
|
2017-01-02 14:52:45 -05:00
|
|
|
|
|
|
|
func (m *Endpoint) GetNetwork() Network {
|
|
|
|
if m != nil {
|
|
|
|
return m.Network
|
|
|
|
}
|
|
|
|
return Network_Unknown
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Endpoint) GetAddress() *IPOrDomain {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Endpoint) GetPort() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Port
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Endpoint)(nil), "v2ray.core.common.net.Endpoint")
|
|
|
|
}
|
|
|
|
|
2018-05-25 05:56:01 -04:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("v2ray.com/core/common/net/destination.proto", fileDescriptor_destination_8cb120f3026d561e)
|
|
|
|
}
|
2017-01-02 14:52:45 -05:00
|
|
|
|
2018-05-25 05:56:01 -04:00
|
|
|
var fileDescriptor_destination_8cb120f3026d561e = []byte{
|
2017-02-03 17:15:10 -05:00
|
|
|
// 230 bytes of a gzipped FileDescriptorProto
|
2017-04-04 06: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, 0x0a, 0xf2, 0x8b, 0x4a, 0x24, 0x98, 0x15, 0x18, 0x35, 0x78, 0x83, 0xc0,
|
2017-02-03 17:15:10 -05:00
|
|
|
0x6c, 0x27, 0x2b, 0x2e, 0xc9, 0xe4, 0xfc, 0x5c, 0xec, 0x86, 0x04, 0x30, 0x46, 0x31, 0xe7, 0xa5,
|
|
|
|
0x96, 0xac, 0x62, 0x12, 0x0d, 0x33, 0x0a, 0x4a, 0xac, 0xd4, 0x73, 0x06, 0x49, 0x3b, 0x43, 0xa4,
|
|
|
|
0xfd, 0x52, 0x4b, 0x92, 0xd8, 0xc0, 0x5e, 0x33, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x75, 0xe4,
|
|
|
|
0xce, 0x58, 0x72, 0x01, 0x00, 0x00,
|
2017-01-02 14:52:45 -05:00
|
|
|
}
|