i recv() from socket in while. and test on ctrl+c:
while(recv(.....))
bsdsocket.library can do CTRL-C checking for you. See SocketBaseTagList autodoc about SBTC_BREAKMASK.
what i can redirect all 'cli' output to
file or memory ? i mean:
char buf[500];
SystemTags("newcli",???); // cli start, but output redirect
// to buf[];
You can't redirect to memory, you need to use temporary file and SYS_Output tag. The output file can use PIPE:, however.