I add ciscoctrl class in ciscoctrl.h. I want to use class ciscoctrl work in main thread and the telnet class work in listening thread.

They can communicate with each other using "callback" function.