Exemple #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, eClientStatus preprocessorId)
 {
     Type           = type;
     Code           = (int)code;
     Description    = string.Empty;
     PreprocessorID = (int)preprocessorId;
 }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, eClientStatus preprocessorId)
 {
     Type           = type;
     Code           = code;
     Description    = desc;
     PreprocessorID = (int)preprocessorId;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, eClientStatus preprocessorId)
 {
     m_type           = type;
     m_code           = code;
     m_desc           = desc;
     m_preprocessorId = (int)preprocessorId;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">Type of packet to handle</param>
 /// <param name="code">ID of the packet to handle</param>
 /// <param name="desc">Description of the packet handler</param>
 /// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
 public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, eClientStatus preprocessorId)
 {
     m_type           = type;
     m_code           = (int)code;
     m_desc           = "";
     m_preprocessorId = (int)preprocessorId;
 }
Exemple #5
0
		private void UpdateStatus()
		{
			DateTime dteCurrentTime = DateTime.Now;

			// Note. Work out what Status this Tcp Client is in

			if (meStatus == eClientStatus.Connected)
			{
				if ((dteCurrentTime.Ticks - mdteLastActivity.Ticks) > MAX_TIME_DORMANT)
				{
					meStatus = eClientStatus.Dormant;
				}
			}

		}
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="type">Type of packet to handle</param>
		/// <param name="code">ID of the packet to handle</param>
		/// <param name="desc">Description of the packet handler</param>
		/// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
		public PacketHandlerAttribute(PacketHandlerType type, int code, string desc, eClientStatus preprocessorId)
		{
			m_type = type;
			m_code = code;
			m_desc = desc;
			m_preprocessorId = (int) preprocessorId;
		}
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="type">Type of packet to handle</param>
		/// <param name="code">ID of the packet to handle</param>
		/// <param name="desc">Description of the packet handler</param>
		/// <param name="preprocessorId">ID of the preprocessor to use for this packet</param>
		public PacketHandlerAttribute(PacketHandlerType type, eClientPackets code, eClientStatus preprocessorId)
		{
			m_type = type;
			m_code = (int)code;
			m_desc = "";
			m_preprocessorId = (int)preprocessorId;
		}