IKcpSocket.cs 314 B

12345678910111213
  1. using System;
  2. using System.Net.Sockets;
  3. namespace IFramework.Net.KCP
  4. {
  5. public interface IKcpSocket
  6. {
  7. Socket socket { get; }
  8. void Send(byte[] buffer, int length);
  9. void Connect(string host, int port);
  10. void Close();
  11. event Action<byte[], int, int> onMessage;
  12. }
  13. }