Exemplo n.º 1
0
        /// <summary>
        /// Creates <see cref="TcpService{TClient}"/> with specified <see cref="System.Net.IPEndPoint"/> and listening backlog
        /// </summary>
        public static TcpService <TClient> Create(IPEndPoint endPoint, int backlog)
        {
            var config = new TcpServiceConfiguration();

            config.AddEndPoint(new TcpServiceEndPoint(endPoint, 100));
            return(new TcpService <TClient>(config));
        }
Exemplo n.º 2
0
 protected TcpService(TcpServiceConfiguration configuration) : this()
 {
     Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Exemplo n.º 3
0
 public TcpService(TcpServiceConfiguration configuration) : base(configuration)
 {
 }