1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-17 08:34:15 +00:00
livingcomputermuseum.ContrAlto/Contralto/IO/IPacketEncapsulation.cs

24 lines
630 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);
}
}