You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Network/Contract/IZTransport.cs

24 lines
488 B

using System;
using System.Net;
namespace ZeroLevel.Network
{
public interface IZTransport
: IDisposable
{
event Action OnConnect;
event Action OnDisconnect;
event EventHandler<Frame> OnServerMessage;
IPEndPoint Endpoint { get; }
ZTransportStatus Status { get; }
void EnsureConnection();
void Send(Frame frame);
void Request(Frame frame, Action<Frame> callback, Action<string> fail = null);
}
}

Powered by TurnKey Linux.