Beispiel #1
0
        public TcpCommObj() : base()
        {
            TrHandler = TransportHandler.TCP;
            tcpClient = new TcpClient();

            // to do: add some default params? :S
            communicationParams = null;
        }
Beispiel #2
0
        public override CommunicationObject CreateNew(CommunicationParameters commPar)
        {
            CommunicationObject retVal = new TcpCommObj(commPar);

            try
            {
            }
            catch (Exception)
            {
                throw;
            }
            return(retVal);
        }
Beispiel #3
0
        public TcpCommObj(CommunicationParameters commPar) : base()
        {
            //if (commPar.HostPort == 20000)
            //{
            //    IPAddress ipAddress = IPAddress.Parse("192.168.0.103");
            //    IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, 20000);
            //    tcpClient = new TcpClient(ipLocalEndPoint);
            //}
            //else
            //{
            tcpClient = new TcpClient();
            // }

            TrHandler           = TransportHandler.TCP;
            communicationParams = commPar;
        }
Beispiel #4
0
 public abstract CommunicationObject CreateNew(CommunicationParameters commPar);
Beispiel #5
0
 public override CommunicationObject CreateNew(CommunicationParameters commPar)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public TcpCommObj(CommunicationParameters commPar) : base()
 {
     TrHandler           = TransportHandler.TCP;
     tcpClient           = new TcpClient();
     communicationParams = commPar;
 }