aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Transporters/BasicTransporter.cs
blob: 745db67ae296509be34e7ca88c64f644a323a9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Google.Protobuf;
using Tango.Transport.Adapters;
using Tango.PMR;
using Tango.PMR.Common;
using System.Collections.Concurrent;
using System.Reactive.Subjects;
using System.Threading;
using System.Reactive;
using System.Reactive.Disposables;
using Tango.Logging;

namespace Tango.Transport.Transporters
{
    /// <summary>
    /// Represents an <see cref="ITransporter"/> which send and receive <see cref="TangoMessage{T}"/> messages using Protobuf binary data.
    /// </summary>
    /// <seealso cref="Tango.Transport.TransporterBase" />
    public class BasicTransporter : TransporterBase
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="BasicTransporter"/> class.
        /// </summary>
        public BasicTransporter() : base()
        {
            ComponentName = $"Basic Transporter {_component_counter++}";
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="BasicTransporter"/> class.
        /// </summary>
        /// <param name="adapter">The transport adapter.</param>
        public BasicTransporter(ITransportAdapter adapter) : base(adapter)
        {

        }

        #endregion
    }
}