using System.IO; namespace Contralto.IO { public delegate void ReceivePacketDelegate(MemoryStream data); public interface IPacketEncapsulation { /// /// Registers a callback delegate to handle packets that are received. /// /// void RegisterReceiveCallback(ReceivePacketDelegate callback); /// /// Sends the specified word array /// /// /// void Send(ushort[] packet, int length); } }