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/Contracts/ISocketClient.cs

21 lines
515 B

5 years ago
using System;
using System.Net;
namespace ZeroLevel.Network
{
public interface ISocketClient:
IDisposable
{
event Action<ISocketClient> OnConnect;
event Action<ISocketClient> OnDisconnect;
IPEndPoint Endpoint { get; }
SocketClientStatus Status { get; }
IRouter Router { get; }
5 years ago
void Send(Frame data);
void Request(Frame data, Action<byte[]> callback, Action<string> fail = null);
5 years ago
void Response(byte[] data, int identity);
}
}

Powered by TurnKey Linux.