using System; using System.Net; using System.Threading.Tasks; namespace Network.NetworkTransport { public interface ITransport { void SendTo(byte[] data, IPEndPoint target); void SendToAll(byte[] data); event Action OnReceive; Task StartAsync(); void Stop(); } }