public TFramedTransport(string host, int port, TSocketSettings socketSettings) { if (string.IsNullOrEmpty(host)) throw new ArgumentNullException("host"); if (socketSettings == null) throw new ArgumentNullException("socketSettings"); if (host.ToLowerInvariant() == "localhost") { host = "127.0.0.1"; } remoteEndPoint = new IPEndPoint(IPAddress.Parse(host), port); socket = new TSocketV2(socketSettings); }
public TFramedTransport(string host, int port, TSocketSettings socketSettings) { if (string.IsNullOrEmpty(host)) { throw new ArgumentNullException("host"); } if (socketSettings == null) { throw new ArgumentNullException("socketSettings"); } if (host.ToLower() == "localhost") { host = "127.0.0.1"; } remoteEndPoint = new IPEndPoint(IPAddress.Parse(host), port); socket = new TSocketV2(socketSettings); }