Example #1
0
 protected internal override void Start(AsciiTcpConnection connection)
 {
     _connection                 = connection;
     connection.AfterSend       += new MethodInvoker(connection_AfterSend);
     connection.OperationFailed += new MethodInvoker(FireFinished);
     connection.SendLine(_line);
 }
Example #2
0
        protected internal override void Start(AsciiTcpConnection connection)
        {
            _connection = connection;
            AsciiConnectUnit connectUnit = new AsciiConnectUnit();

            connectUnit.Finished += new AsciiProtocolUnitDelegate(connectUnit_Finished);
            StartUnit(connectUnit, connection);
        }
Example #3
0
 protected internal override void Start(AsciiTcpConnection connection)
 {
     _connection               = connection;
     connection.AfterConnect  += new MethodInvoker(connection_AfterConnect);
     connection.ResolveFailed += new MethodInvoker(FireFinished);
     connection.ConnectFailed += new MethodInvoker(FireFinished);
     connection.Connect();
 }
Example #4
0
        protected internal override void Start(AsciiTcpConnection connection)
        {
            _connection = connection;
            AsciiSendLineUnit sendUnit = new AsciiSendLineUnit(_line);

            sendUnit.Finished += new AsciiProtocolUnitDelegate(sendUnit_Finished);
            StartUnit(sendUnit, connection);
        }
Example #5
0
 protected static void StartUnit(AsciiProtocolUnit unit, AsciiTcpConnection connection)
 {
     unit.Start(connection);
 }
Example #6
0
 protected internal abstract void Start(AsciiTcpConnection connection);