github.com/zignig/go-ipfs@v0.0.0-20141111235910-c9e5fdf55a52/net/handshake/pb/handshake.pb.go (about)

     1  // Code generated by protoc-gen-gogo.
     2  // source: handshake.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package handshake_pb is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	handshake.proto
    10  
    11  It has these top-level messages:
    12  	Handshake1
    13  	Handshake3
    14  */
    15  package handshake_pb
    16  
    17  import proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/gogoprotobuf/proto"
    18  import json "encoding/json"
    19  import math "math"
    20  
    21  // Reference proto, json, and math imports to suppress error if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = &json.SyntaxError{}
    24  var _ = math.Inf
    25  
    26  // Handshake1 is delivered _before_ the secure channel is initialized
    27  type Handshake1 struct {
    28  	// protocolVersion determines compatibility between peers
    29  	ProtocolVersion *string `protobuf:"bytes,1,opt,name=protocolVersion" json:"protocolVersion,omitempty"`
    30  	// agentVersion is like a UserAgent string in browsers, or client version in bittorrent
    31  	// includes the client name and client. e.g.   "go-ipfs/0.1.0"
    32  	AgentVersion     *string `protobuf:"bytes,2,opt,name=agentVersion" json:"agentVersion,omitempty"`
    33  	XXX_unrecognized []byte  `json:"-"`
    34  }
    35  
    36  func (m *Handshake1) Reset()         { *m = Handshake1{} }
    37  func (m *Handshake1) String() string { return proto.CompactTextString(m) }
    38  func (*Handshake1) ProtoMessage()    {}
    39  
    40  func (m *Handshake1) GetProtocolVersion() string {
    41  	if m != nil && m.ProtocolVersion != nil {
    42  		return *m.ProtocolVersion
    43  	}
    44  	return ""
    45  }
    46  
    47  func (m *Handshake1) GetAgentVersion() string {
    48  	if m != nil && m.AgentVersion != nil {
    49  		return *m.AgentVersion
    50  	}
    51  	return ""
    52  }
    53  
    54  // Handshake3 is delivered _after_ the secure channel is initialized
    55  type Handshake3 struct {
    56  	// listenAddrs are the multiaddrs the sender node listens for open connections on
    57  	ListenAddrs [][]byte `protobuf:"bytes,2,rep,name=listenAddrs" json:"listenAddrs,omitempty"`
    58  	// oservedAddr is the multiaddr of the remote endpoint that the sender node perceives
    59  	// this is useful information to convey to the other side, as it helps the remote endpoint
    60  	// determine whether its connection to the local peer goes through NAT.
    61  	ObservedAddr     []byte `protobuf:"bytes,4,opt,name=observedAddr" json:"observedAddr,omitempty"`
    62  	XXX_unrecognized []byte `json:"-"`
    63  }
    64  
    65  func (m *Handshake3) Reset()         { *m = Handshake3{} }
    66  func (m *Handshake3) String() string { return proto.CompactTextString(m) }
    67  func (*Handshake3) ProtoMessage()    {}
    68  
    69  func (m *Handshake3) GetListenAddrs() [][]byte {
    70  	if m != nil {
    71  		return m.ListenAddrs
    72  	}
    73  	return nil
    74  }
    75  
    76  func (m *Handshake3) GetObservedAddr() []byte {
    77  	if m != nil {
    78  		return m.ObservedAddr
    79  	}
    80  	return nil
    81  }
    82  
    83  func init() {
    84  }