GetIpv4Address() private method

private GetIpv4Address ( string name ) : IPAddress
name string
return System.Net.IPAddress
Esempio n. 1
0
        private ITransport CreateUDPTransport(DogStatsdEndPoint endPoint)
        {
            var address = StatsdUDP.GetIpv4Address(endPoint.ServerName);
            var port = endPoint.Port;

            var ipEndPoint = new System.Net.IPEndPoint(address, port);
            return _factory.CreateUDPTransport(ipEndPoint);
        }
        private StatsSender CreateUDPStatsSender(StatsdConfig config, string statsdServerName)
        {
            var address = StatsdUDP.GetIpv4Address(statsdServerName);
            var port    = GetPort(config);

            var endPoint = new IPEndPoint(address, port);

            return(_factory.CreateUDPStatsSender(endPoint));
        }