From: Andreas K. <and...@ac...> - 2006-10-30 22:25:31
|
> Using the attached scripts (yyy = sender incomplete line, zzz = > sender complete > line, xxx = receiver), I find that after each push of an incomplete > line to the > socket the receiver calls the event handler only twice and then > stops. Until the > next chunk is received. Without the special case it would expect it to execute > the handler rapidly without stopping, until the line has been completed ... > > Interesting. Now I am wondering how this is implemented. Aha. tclIO.c, Tcl_GetsObj, line 3854 (8.4 head, end of the function). CHANNEL_NEED_MORE_DATA flag ... -- Andreas Kupries <and...@Ac...> Developer @ http://www.ActiveState.com Tel: +1 778-786-1122 |