/// <summary> /// Constructs a communicator out of the given pipe-name /// </summary> /// <param name="name">The pipe to build</param> public Communicator(string name) { pipe = new Pipe(name); factory = new FunctionCallFactory(); rfactory = new ResponseFactory(); initialized = pipe.initialize(); this.name = name; }
/// <summary> /// Checks if the pipe is ready, might block /// </summary> /// <returns>True if ready, false otherwise</returns> public bool connect() { if (!initialized) { initialized = pipe.initialize(); } //Thread.Sleep(100); return(pipe.isReady()); }