mirror of https://github.com/ogoun/Zero.git
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.
28 lines
703 B
28 lines
703 B
using System;
|
|
using System.Net;
|
|
|
|
namespace ZeroLevel.Network
|
|
{
|
|
public interface IExchange
|
|
: IClientSet, IDisposable
|
|
{
|
|
bool UseDiscovery();
|
|
bool UseDiscovery(string endpoint);
|
|
bool UseDiscovery(IPEndPoint endpoint);
|
|
|
|
IRouter UseHost();
|
|
IRouter UseHost(int port);
|
|
IRouter UseHostV6();
|
|
IRouter UseHostV6(int port);
|
|
|
|
IRouter UseHost(IPEndPoint endpoint);
|
|
|
|
IServiceRoutesStorage RoutesStorage { get; }
|
|
IServiceRoutesStorage DiscoveryStorage { get; }
|
|
|
|
IClient GetConnection(ISocketClient client);
|
|
IClient GetConnection(string alias);
|
|
IClient GetConnection(IPEndPoint endpoint);
|
|
}
|
|
}
|