Re: lftp - modules
"Alexander V. Lukyanov" <[email protected]> Wed, 15 Feb 2006 14:11:28 +0300
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Feb 15, 2006 at 10:11:17AM +0530, Vishwanath Patil wrote: > Currently what happens is the Do loop of the CmdExec calls NextCmd and > that in turn is readline's get.... which is a blocking type of call. > Can a parallely add one more interface to send these commands without > disturbing the existing command line. i.e. i want to retain the > readline get.... and also to have another interface to give the > commands.... where should i modify the code.... You can use CmdExec::SetCmdFeeder method to set your own command feeder. E.g. you can do that in init_module (call top_exec->SetCmdFeeder) or in a newly registered command (parent->SetCmdFeeder). -- Alexander.