Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
 /// <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)));
 }
Example #6
0
 public static Task <IActorClientProxy> CreateProxy(Type actorType, string remoteEndPoint)
 {
     return(CreateProxy(actorType, IPHelpers.Parse(remoteEndPoint)));
 }
Example #7
0
 public static Task <T> CreateActor <T>(string remoteEndPoint)
 {
     return(CreateActor <T>(IPHelpers.Parse(remoteEndPoint)));
 }
Example #8
0
 public static Task <IActorClientProxy <T> > CreateProxy <T>(string endPoint)
 {
     return(CreateProxy <T>(IPHelpers.Parse(endPoint)));
 }
Example #9
0
 public SocketServer(IExecutor executor, string bindEndPoint)
     : this(executor, IPHelpers.Parse(bindEndPoint))
 {
 }
Example #10
0
 public SocketServer(string bindEndPoint)
     : this(new ActionBlockExecutor(), IPHelpers.Parse(bindEndPoint))
 {
 }
Example #11
0
 public static IActorServerProxy Create <T>(string bindEndPoint, T actorImpl, ActorServerProxyOptions options)
 {
     return(Create(actorImpl, IPHelpers.Parse(bindEndPoint), options));
 }
Example #12
0
 public static IActorServerProxy Create <T>(string bindEndPoint, ActorServerProxyOptions options)
     where T : new()
 {
     return(Create <T>(IPHelpers.Parse(bindEndPoint), new T(), options));
 }