-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further Implemented HighwayContext.cs
- Loading branch information
1 parent
0f35687
commit b75c91c
Showing
8 changed files
with
266 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
Lagrange.Core/Core/Packets/Service/Highway/DataHighwayHead.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using ProtoBuf; | ||
|
||
namespace Lagrange.Core.Core.Packets.Service.Highway; | ||
|
||
[ProtoContract] | ||
internal class DataHighwayHead | ||
{ | ||
[ProtoMember(1)] public uint Version { get; set; } | ||
|
||
[ProtoMember(2)] public string? Uin { get; set; } | ||
|
||
[ProtoMember(3)] public string? Command { get; set; } | ||
|
||
[ProtoMember(4)] public uint Seq { get; set; } | ||
|
||
[ProtoMember(5)] public uint RetryTimes { get; set; } | ||
|
||
[ProtoMember(6)] public uint AppId { get; set; } | ||
|
||
[ProtoMember(7)] public uint DataFlag { get; set; } | ||
|
||
[ProtoMember(8)] public uint CommandId { get; set; } | ||
|
||
[ProtoMember(9)] public byte[]? BuildVer { get; set; } | ||
|
||
[ProtoMember(10)] public uint LocaleId { get; set; } | ||
|
||
[ProtoMember(11)] public uint EnvId { get; set; } | ||
} |
11 changes: 11 additions & 0 deletions
11
Lagrange.Core/Core/Packets/Service/Highway/LoginSigHead.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using ProtoBuf; | ||
|
||
namespace Lagrange.Core.Core.Packets.Service.Highway; | ||
|
||
[ProtoContract] | ||
internal class LoginSigHead | ||
{ | ||
[ProtoMember(1)] public uint Uint32LoginSigType { get; set; } | ||
|
||
[ProtoMember(2)] public byte[] BytesLoginSig { get; set; } = Array.Empty<byte>(); | ||
} |
17 changes: 17 additions & 0 deletions
17
Lagrange.Core/Core/Packets/Service/Highway/ReqDataHighwayHead.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using ProtoBuf; | ||
|
||
namespace Lagrange.Core.Core.Packets.Service.Highway; | ||
|
||
[ProtoContract] | ||
internal class ReqDataHighwayHead | ||
{ | ||
[ProtoMember(1)] public DataHighwayHead? MsgBaseHead { get; set; } | ||
|
||
[ProtoMember(2)] public SegHead? MsgSegHead { get; set; } | ||
|
||
[ProtoMember(3)] public byte[]? BytesReqExtendInfo { get; set; } | ||
|
||
[ProtoMember(4)] public ulong Timestamp { get; set; } | ||
|
||
[ProtoMember(5)] public LoginSigHead? MsgLoginSigHead { get; set; } | ||
} |
27 changes: 27 additions & 0 deletions
27
Lagrange.Core/Core/Packets/Service/Highway/RespDataHighwayHead.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using ProtoBuf; | ||
|
||
namespace Lagrange.Core.Core.Packets.Service.Highway; | ||
|
||
[ProtoContract] | ||
internal class RespDataHighwayHead | ||
{ | ||
[ProtoMember(1)] public DataHighwayHead? MsgBaseHead { get; set; } | ||
|
||
[ProtoMember(2)] public SegHead? MsgSegHead { get; set; } | ||
|
||
[ProtoMember(3)] public uint ErrorCode { get; set; } | ||
|
||
[ProtoMember(4)] public uint AllowRetry { get; set; } | ||
|
||
[ProtoMember(5)] public uint CacheCost { get; set; } | ||
|
||
[ProtoMember(6)] public uint HtCost { get; set; } | ||
|
||
[ProtoMember(7)] public byte[]? BytesRspExtendInfo { get; set; } | ||
|
||
[ProtoMember(8)] public ulong Timestamp { get; set; } | ||
|
||
[ProtoMember(9)] public ulong Range { get; set; } | ||
|
||
[ProtoMember(10)] public uint IsReset { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using ProtoBuf; | ||
|
||
namespace Lagrange.Core.Core.Packets.Service.Highway; | ||
|
||
[ProtoContract] | ||
internal class SegHead | ||
{ | ||
[ProtoMember(1)] public uint ServiceId { get; set; } | ||
|
||
[ProtoMember(2)] public ulong Filesize { get; set; } | ||
|
||
[ProtoMember(3)] public ulong DataOffset { get; set; } | ||
|
||
[ProtoMember(4)] public uint DataLength { get; set; } | ||
|
||
[ProtoMember(5)] public uint RetCode { get; set; } | ||
|
||
[ProtoMember(6)] public byte[] ServiceTicket { get; set; } = Array.Empty<byte>(); | ||
|
||
[ProtoMember(7)] public uint Flag { get; set; } | ||
|
||
[ProtoMember(8)] public byte[] Md5 { get; set; } = Array.Empty<byte>(); | ||
|
||
[ProtoMember(9)] public byte[] FileMd5 { get; set; } = Array.Empty<byte>(); | ||
|
||
[ProtoMember(10)] public uint CacheAddr { get; set; } | ||
|
||
[ProtoMember(11)] public uint QueryTimes { get; set; } | ||
|
||
[ProtoMember(12)] public uint UpdateCacheIp { get; set; } | ||
|
||
[ProtoMember(13)] public uint CachePort { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters