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
506 B

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

Powered by TurnKey Linux.