IServerConnection.cs 484 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Net;
  3. namespace Core.KCPTool
  4. {
  5. public interface IServerConnection: IDisposable
  6. {
  7. public bool isConnected { get; set; }
  8. public int connectionID { get; set; }
  9. public long playerId { get; set; }
  10. public IPEndPoint EndPoint { get; set; }
  11. public int SendData(byte[] data, int dataSize);
  12. public void Update();
  13. public void ReceiveAsync();
  14. public int Input(byte[] data);
  15. }
  16. }