Documentation ¶
Index ¶
- Constants
- Variables
- type ServerConnect
- func (*ServerConnect) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConnect) GetConnectionNonce() []byte
- func (x *ServerConnect) GetProtocolVersion() int32
- func (x *ServerConnect) GetServerSoftware() string
- func (x *ServerConnect) GetServerVersion() string
- func (*ServerConnect) ProtoMessage()
- func (x *ServerConnect) ProtoReflect() protoreflect.Message
- func (x *ServerConnect) Reset()
- func (x *ServerConnect) String() string
Constants ¶
View Source
const EmissaryServer = "emissary-server"
EmissaryServer is a constant and allows the client to sanity check it's connected to the correct thing
View Source
const NonceSize = 32
View Source
const ProtocolVersion = 1
ProtocolVersion allows us forwards compatibility if we redesign the protocol in the future
Versions: 1 = SOCKS5 proxy server is available after the connection message is sent by the server
Variables ¶
View Source
var EmissaryServerVersion = "devel"
EmissaryServerVersion is a var so we can change it at compile time
View Source
var File_emissary_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ServerConnect ¶
type ServerConnect struct { ServerSoftware string `protobuf:"bytes,1,opt,name=server_software,json=serverSoftware,proto3" json:"server_software,omitempty"` // What's the server software name ServerVersion string `protobuf:"bytes,2,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // What's the server's version ProtocolVersion int32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // What's the protocol version we're going to use ConnectionNonce []byte `protobuf:"bytes,4,opt,name=connection_nonce,json=connectionNonce,proto3" json:"connection_nonce,omitempty"` // What's the server's requested nonce // contains filtered or unexported fields }
func (*ServerConnect) Descriptor
deprecated
func (*ServerConnect) Descriptor() ([]byte, []int)
Deprecated: Use ServerConnect.ProtoReflect.Descriptor instead.
func (*ServerConnect) GetConnectionNonce ¶
func (x *ServerConnect) GetConnectionNonce() []byte
func (*ServerConnect) GetProtocolVersion ¶
func (x *ServerConnect) GetProtocolVersion() int32
func (*ServerConnect) GetServerSoftware ¶
func (x *ServerConnect) GetServerSoftware() string
func (*ServerConnect) GetServerVersion ¶
func (x *ServerConnect) GetServerVersion() string
func (*ServerConnect) ProtoMessage ¶
func (*ServerConnect) ProtoMessage()
func (*ServerConnect) ProtoReflect ¶
func (x *ServerConnect) ProtoReflect() protoreflect.Message
func (*ServerConnect) Reset ¶
func (x *ServerConnect) Reset()
func (*ServerConnect) String ¶
func (x *ServerConnect) String() string
Click to show internal directories.
Click to hide internal directories.