// // Copyright (c) 2010-2023 Antmicro // // This file is licensed under the MIT License. // Full license text is available in 'licenses/MIT.txt'. // using System; using Antmicro.Renode.Core; namespace Antmicro.Renode.Peripherals.Network { public interface IEmulatedNetworkService : IExternal, IDisposable { // This method is called when the modem disconnects from this emulated network // service, either by closing the connection explicitly or on reset. void Disconnect(); byte[] Receive(int bytes); bool Send(byte[] data); int BytesAvailable { get; } event Action BytesReceived; string Host { get; } ushort Port { get; } } }