public void Asterisk_should_be_parsed_as_any() { var ep = IPHelpers.Parse("tcp://*:1234"); Assert.Equal(IPAddress.Any, ep.Address); Assert.Equal(1234, ep.Port); }
public void IPv6_Plus_should_be_parsed_as_any() { var ep = IPHelpers.Parse("tcp6://+:1234"); Assert.Equal(IPAddress.IPv6Any, ep.Address); Assert.Equal(1234, ep.Port); }
public void IPv6_Localhost_should_return_loopback_address() { var ep = IPHelpers.Parse("tcp6://localhost:1234"); Assert.Equal(IPAddress.IPv6Loopback, ep.Address); Assert.Equal(1234, ep.Port); }
public void Numeric_ip_should_be_parsed_properly() { var ep = IPHelpers.Parse("tcp://10.43.12.43:1234"); Assert.Equal(IPAddress.Parse("10.43.12.43"), ep.Address); Assert.Equal(1234, ep.Port); }
/// <summary> /// Connects to a given remote end point. This method returns before /// socket is connected, observe Connected property to discover /// if actual connection was successfull or not. /// </summary> /// <param name="remoteEndPoint"> /// End point in format [proto]://[address]:[port] /// <para>Supported protocols: 'tcp' and 'tcp6'</para> /// <para>Supported addresses: 'localhost' or numeric form.</para> /// </param> public IObservable <Unit> Connect(string remoteEndPoint) { return(Connect(IPHelpers.Parse(remoteEndPoint))); }
public static Task <IActorClientProxy> CreateProxy(Type actorType, string remoteEndPoint) { return(CreateProxy(actorType, IPHelpers.Parse(remoteEndPoint))); }
public static Task <T> CreateActor <T>(string remoteEndPoint) { return(CreateActor <T>(IPHelpers.Parse(remoteEndPoint))); }
public static Task <IActorClientProxy <T> > CreateProxy <T>(string endPoint) { return(CreateProxy <T>(IPHelpers.Parse(endPoint))); }
public SocketServer(IExecutor executor, string bindEndPoint) : this(executor, IPHelpers.Parse(bindEndPoint)) { }
public SocketServer(string bindEndPoint) : this(new ActionBlockExecutor(), IPHelpers.Parse(bindEndPoint)) { }
public static IActorServerProxy Create <T>(string bindEndPoint, T actorImpl, ActorServerProxyOptions options) { return(Create(actorImpl, IPHelpers.Parse(bindEndPoint), options)); }
public static IActorServerProxy Create <T>(string bindEndPoint, ActorServerProxyOptions options) where T : new() { return(Create <T>(IPHelpers.Parse(bindEndPoint), new T(), options)); }