Documentation ¶
Overview ¶
Package InitConnect is a generated protocol buffer package.
It is generated from these files:
InitConnect.proto
It has these top-level messages:
C2S S2C Request Response
Index ¶
- Constants
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)
- func (m *C2S) GetClientID() string
- func (m *C2S) GetClientVer() int32
- func (m *C2S) GetPacketEncAlgo() int32
- func (m *C2S) GetPushProtoFmt() int32
- func (m *C2S) GetRecvNotify() bool
- func (*C2S) ProtoMessage()
- func (m *C2S) Reset()
- func (m *C2S) String() string
- type Request
- type Response
- type S2C
- func (*S2C) Descriptor() ([]byte, []int)
- func (m *S2C) GetAesCBCiv() string
- func (m *S2C) GetConnAESKey() string
- func (m *S2C) GetConnID() uint64
- func (m *S2C) GetKeepAliveInterval() int32
- func (m *S2C) GetLoginUserID() uint64
- func (m *S2C) GetServerVer() int32
- func (*S2C) ProtoMessage()
- func (m *S2C) Reset()
- func (m *S2C) String() string
Constants ¶
View Source
const Default_Response_RetType int32 = -400
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { ClientVer *int32 `protobuf:"varint,1,req,name=clientVer" json:"clientVer,omitempty"` ClientID *string `protobuf:"bytes,2,req,name=clientID" json:"clientID,omitempty"` RecvNotify *bool `protobuf:"varint,3,opt,name=recvNotify" json:"recvNotify,omitempty"` // 如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密 // 如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法 PacketEncAlgo *int32 `protobuf:"varint,4,opt,name=packetEncAlgo" json:"packetEncAlgo,omitempty"` PushProtoFmt *int32 `protobuf:"varint,5,opt,name=pushProtoFmt" json:"pushProtoFmt,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*C2S) Descriptor ¶
func (*C2S) GetClientID ¶
func (*C2S) GetClientVer ¶
func (*C2S) GetPacketEncAlgo ¶
func (*C2S) GetPushProtoFmt ¶
func (*C2S) GetRecvNotify ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
type Request ¶
type Request struct { C2S *C2S `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Response ¶
type Response struct { RetType *int32 `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"` RetMsg *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"` ErrCode *int32 `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"` S2C *S2C `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetErrCode ¶
func (*Response) GetRetType ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type S2C ¶
type S2C struct { ServerVer *int32 `protobuf:"varint,1,req,name=serverVer" json:"serverVer,omitempty"` LoginUserID *uint64 `protobuf:"varint,2,req,name=loginUserID" json:"loginUserID,omitempty"` ConnID *uint64 `protobuf:"varint,3,req,name=connID" json:"connID,omitempty"` ConnAESKey *string `protobuf:"bytes,4,req,name=connAESKey" json:"connAESKey,omitempty"` KeepAliveInterval *int32 `protobuf:"varint,5,req,name=keepAliveInterval" json:"keepAliveInterval,omitempty"` AesCBCiv *string `protobuf:"bytes,6,opt,name=aesCBCiv" json:"aesCBCiv,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*S2C) Descriptor ¶
func (*S2C) GetAesCBCiv ¶
func (*S2C) GetConnAESKey ¶
func (*S2C) GetKeepAliveInterval ¶
func (*S2C) GetLoginUserID ¶
func (*S2C) GetServerVer ¶
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.