/// <summary> /// Initializes a new instance of the <see cref="TcpHighPerformanceSimpleMessageSocket{TMessage}"/> class. /// </summary> /// <param name="hostNameOrAddress">The host name or address.</param> /// <param name="port">The port.</param> protected TcpHighPerformanceSimpleMessageSocket( [NotNull] string hostNameOrAddress, int port) : base( InitializeSocketPure( NetBasedUtils.GetAddress(hostNameOrAddress), port), default) { }
/// <summary> /// Initializes a new instance of the <see cref="TcpHighPerformanceSimpleMessageSocket{TMessage}"/> class. /// </summary> /// <param name="hostNameOrAddress">The host name or address.</param> /// <param name="port">The port.</param> /// <param name="cancellationToken">The cancellation token.</param> protected TcpHighPerformanceSimpleMessageSocket( string hostNameOrAddress, int port, CancellationToken cancellationToken) : base( InitializeSocketPure( NetBasedUtils.GetAddress(hostNameOrAddress), port), cancellationToken) { }