1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-29 21:21:17 +00:00
Files
livingcomputermuseum.ContrAlto/Contralto/IO/IPacketEncapsulation.cs
2016-03-25 15:52:23 -07:00

29 lines
751 B
C#

using System.IO;
namespace Contralto.IO
{
public delegate void ReceivePacketDelegate(MemoryStream data);
public interface IPacketEncapsulation
{
/// <summary>
/// Registers a callback delegate to handle packets that are received.
/// </summary>
/// <param name="callback"></param>
void RegisterReceiveCallback(ReceivePacketDelegate callback);
/// <summary>
/// Sends the specified word array
/// </summary>
/// <param name="packet"></param>
/// <param name="length"></param>
void Send(ushort[] packet, int length);
/// <summary>
/// Shuts down the encapsulation provider
/// </summary>
void Shutdown();
}
}