Beispiel #1
0
 /// <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)
 {
 }
Beispiel #2
0
 /// <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)
 {
 }