public TCPIPConnection (CommConfig config)
        {
            this.config = config;

            clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

        }
Beispiel #2
0
        public L2Process(CommConfig conf)
        {
            u8LastRecvSeq = 255;
            cfg           = conf;
            if (conf.commType == CommType.RS232)
            {
                L1Handler = new RS232Connection(conf);
            }
            else if (conf.commType == CommType.TCPIP)
            {
                L1Handler = new TCPIPConnection(conf);
            }

            L1Handler.L1DataReceivedEvent = new L1DataReceived(L2OnRcvData);
        }
Beispiel #3
0
 public RS232Connection(CommConfig conf)
 {
     this.config = conf;
     isConnected = false;
 }