using System; using System.Net; namespace ZeroLevel.Network { public interface IClient : IDisposable { IPEndPoint EndPoint { get; } SocketClientStatus Status { get; } IRouter Router { get; } ISocketClient Socket { get; } bool Send(T message); bool Send(string inbox); bool Send(string inbox, byte[] data); bool Send(string inbox, T message); bool Request(string inbox, Action callback); bool Request(string inbox, byte[] data, Action callback); bool Request(string inbox, Action callback); bool Request(string inbox, Trequest request, Action callback); } }