using System.IO; namespace Contralto.IO { public delegate void ReceivePacketDelegate(MemoryStream data); /// /// Provides a generic interface for host network devices that can encapsulate /// Alto ethernet packets. /// public interface IPacketEncapsulation { /// /// Registers a callback delegate to handle packets that are received. /// /// void RegisterReceiveCallback(ReceivePacketDelegate callback); /// /// Sends the specified word array over the device. /// /// /// void Send(ushort[] packet, int length); /// /// Shuts down the encapsulation provider. /// void Shutdown(); } }