Welcome, Guest. Please login or register.

Author Topic: while & ctrl+c . 'break' signal.  (Read 2767 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: while & ctrl+c . 'break' signal.
« on: November 26, 2004, 06:54:34 PM »
Quote
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.

Quote
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.