refactor: channel response test packet
This commit is contained in:
parent
98aa813f65
commit
a9f382963b
1 changed files with 35 additions and 30 deletions
|
@ -71,7 +71,16 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
responsePacket = new ChannelSelectionResponsePacket
|
responsePacket = CreateTestChannelSelectionResponsePacket();
|
||||||
|
}
|
||||||
|
|
||||||
|
authSession.Send(responsePacket);
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static ChannelSelectionResponsePacket CreateTestChannelSelectionResponsePacket()
|
||||||
|
{
|
||||||
|
return new ChannelSelectionResponsePacket
|
||||||
{
|
{
|
||||||
ChannelIsFullFlag = 0,
|
ChannelIsFullFlag = 0,
|
||||||
Endpoint = "127.0.0.1",
|
Endpoint = "127.0.0.1",
|
||||||
|
@ -102,8 +111,4 @@ public class ChannelSelectionHandler : IPacketHandler<ChannelSelectionPacket>
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
authSession.Send(responsePacket);
|
|
||||||
return Task.CompletedTask;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue