Exemplo n.º 1
0
 private static Socket InitializeSocketPure(
     IPAddress address,
     int port) =>
 InitializeSocketPure(
     NetBasedUtils.MakeEndpoint(
         address,
         port));
Exemplo n.º 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>
 protected TcpHighPerformanceSimpleMessageSocket(
     [NotNull] string hostNameOrAddress,
     int port)
     : base(
         InitializeSocketPure(
             NetBasedUtils.GetAddress(hostNameOrAddress),
             port), default)
 {
 }
Exemplo n.º 3
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)
 {
 }