public ManagerComunicationController(DataReceiverController dataReciv,
                                             DataCacheController dataCache,
                                             FileExportController fileExport,
                                             DataSenderController dataSend,
                                             int port
                                             )

        {
            Console.WriteLine("manager ");
            this.dataReciv  = dataReciv;
            this.dataCache  = dataCache;
            this.fileExport = fileExport;
            this.dataSend   = dataSend;

            this.comManag = new AComunicationManager();

            this.managentList = new List <NetWorkContoroller>();
            // dataReceiveThreadの初期化
            //this.dataReceiveThread = new System.Threading.Thread(this.comManag.dataReceivThreadAction);

            //
            string    ipString = "0.0.0.0";
            IPAddress ipAdd    = IPAddress.Parse(ipString);

            //int port = 6001;

            this.listener_ = new TcpListener(ipAdd, port);
            this.listener_.Start();

            // management受け入れのスレッドの起動
            System.Threading.ThreadPool.QueueUserWorkItem(acceptManagemet);
            System.Threading.ThreadPool.QueueUserWorkItem(dataManagementThreadAction);
        }
 // クライアントプロセスの初期化
 public void startClietCommunication(int port)
 {
     // クライアントプロセス用
     this.comManag = new ClientComunicationManager(this.dataReciv, port);
 }
 // サーバプロセスの初期化
 public void startServerComumnication(string ip, int port)
 {
     this.comManag = new ServerComunicationManager(this.dataReciv, ip, port);
 }