Sorry, catching up on old post...
--- In [email protected], sgp acs322000 <[EMAIL PROTECTED]> wrote: > I was under the impression - probably wrong at this point - that pipe > plugin could listen on multiple pipes, in which case I'd create a > script that spawns a ppro event that constanly sits on a pipe waiting > for input from a given instance of the console app. In current version of pipe plugin, there is only one pipe and one instance of it possible at any moment, but since it's message-oriented, many sources can connect to it, send a message, then disconnect. I'm not entirely sure what happens when one message source attempts to grab the listening pipe and send a message to it when pipe is being written to at that same instance by some other message source. All depends how this command works on a busy pipe: HANDLE hPipe=CreateFile(pszPipeNameFull, GENERIC_WRITE, // type of access to the object FILE_SHARE_READ | FILE_SHARE_WRITE, // how the object can be //shared NULL, // p SECURITY_ATTRIBUTES // structure; // whether the returned // structure; handle can be // inherited by child proce OPEN_EXISTING, // which action to take on files that exist FILE_ATTRIBUTE_NORMAL, // file attributes and flags; FILE_FLAG_OVERLAPPED possible NULL); // handle to file with attributes to copy But my impression is it should work ok. > So script 'StartConsoleSessions' waits on pipe 'ConsoleRequests', > when a request to start a console session comes in on that pipe, > StartConsoleSessions spawns event id X, and returns X, via the pipe, > to the console program. Now event id X and console program use pipe > 'Session'++X to communicate. Is this possible? Conceptually flawed? Since pipe plugion assumes input is a PP command, surely you don;t really need events? Each console sends a string which _is_ the appropriate PP command? Or are your console apps not configurable to send strings that look like PP commands? Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
