Example #1
0
        public override string ToString()
        {
            string v;

            try {
                v = GetAdditionalString();
            } catch (Exception) {
                v = " ERROR_GETTING_ADDITIONAL_STRING";
            }
            if (IsUdp)
            {
                return($"{{Socket udp={_ePPair.LocalEP} {base.State.ToString()}{v}}}");
            }
            return($"{{Socket {_ePPair.ToString()} {base.State.ToString()}{v}}}");
        }
Example #2
0
 public override string GetInfoStr() => _eppair.ToString();