Protocol.cs 459 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using CommonLang.IO;
  4. namespace CommonLang.Protocol
  5. {
  6. public interface IMessage : IExternalizable
  7. {
  8. int MessageID { get; set; }
  9. }
  10. abstract public class NetMessage : IExternalizable, IMessage
  11. {
  12. public int MessageID { get; set; }
  13. abstract public void WriteExternal(IOutputStream output);
  14. abstract public void ReadExternal(IInputStream input);
  15. }
  16. }