public static EndPoint ToEndPoint(NSJSValue value) { string ep = (value as NSJSString)?.Value; if (string.IsNullOrEmpty(ep)) { return(null); } try { return(Ipep.ToIpep(ep)); } catch { return(null); } }
internal MalockSocket(string identity, string address, int listenport, int linkMode) : this(identity, Ipep.ToIpep(address), listenport, linkMode) { }