001package org.vishia.commander.target;
002
003import org.vishia.communication.Address_InterProcessComm;
004import org.vishia.communication.InterProcessComm;
005
006public class FcmdtComm
007{
008  InterProcessComm ipc;
009  
010  Address_InterProcessComm sender = new Address_InterProcessComm()
011  {
012  };
013  
014  Thread threadMngComm;
015  
016  boolean bRun;
017  
018  Runnable threadRunComm = new Runnable(){
019    @Override public void run(){ threadRunComm(); }
020  };
021  
022  
023  void threadRunComm(){
024    bRun = true;
025    while(bRun){
026      int[] result = new int[1];
027      byte[] data = ipc.receive(result, sender);
028      if(result[1]>0){
029        //TODO Use the reflection protocol for target access.
030      }
031    }
032  }
033}