Skip to content

Commit

Permalink
New ERROR_CODE_NOT_IMPLEMENTED for the FallbackHandler to return in c…
Browse files Browse the repository at this point in the history
…ase of UNHANDLED PACKET.
  • Loading branch information
RyanYappert committed Jan 10, 2025
1 parent 3d1fd45 commit d6b8b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Arrowgene.Ddon.Server/Handler/FallbackHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override void Handle(TClient client, IPacket request)
{
PacketId responsePacketId = PacketId.GetPacketId(Server.Type, request.Id.GroupId, request.Id.HandlerId, 2);
IBuffer responseBuffer = new StreamBuffer();
responseBuffer.WriteUInt32((uint) ErrorCode.ERROR_CODE_FAIL, Endianness.Big);
responseBuffer.WriteUInt32((uint) ErrorCode.ERROR_CODE_NOT_IMPLEMENTED, Endianness.Big);
Packet response = new Packet(responsePacketId, responseBuffer.GetAllBytes());
client.Send(response);
}
Expand Down
1 change: 1 addition & 0 deletions Arrowgene.Ddon.Shared/Model/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public enum ErrorCode : uint
{
ERROR_CODE_SUCCESS = 0x0,
ERROR_CODE_FAIL = 0x1, // TODO Custom Error Code, find real one
ERROR_CODE_NOT_IMPLEMENTED = 0x2,
ERROR_CODE_DB_DUPLICATE_ENTRY = 0x3E8,
ERROR_CODE_DB_DEAD_LOCK = 0x3E9,
ERROR_CODE_DB_FAILURE = 0x3EA,
Expand Down

0 comments on commit d6b8b50

Please sign in to comment.