SignalAddress.cs 445 B

1234567891011121314151617181920212223
  1. namespace TBL.CSharp.Game.Server.Message;
  2. /// <summary>
  3. /// 信号地址
  4. /// </summary>
  5. public readonly struct SignalAddress
  6. {
  7. /// <summary>
  8. /// 服务句柄
  9. /// </summary>
  10. public readonly int ServiceHandle;
  11. /// <summary>
  12. /// 端口
  13. /// </summary>
  14. public readonly ushort Port;
  15. public SignalAddress(int serviceHandle, ushort port)
  16. {
  17. ServiceHandle = serviceHandle;
  18. Port = port;
  19. }
  20. }