From: Zoran V. <zv...@ar...> - 2006-01-04 16:51:00
|
Am 04.01.2006 um 16:10 schrieb Vlad Seryakov: > I believe poll can be used on any file descriptor, not only sockets. > > It is generic socket/fds callback infrastructure, it is very > similar to socket callbacks we already have in sockcallback.c. > > Does not make sense to have both, they duplicating each other Hm... on the first glance, yes... I think the benefit of "task" interaface is that it's more genral in terms of the API. Actually, one could re-write the latter with the former, as I can see. The sockcallback exports just two/three calls: Ns_SockCallback Ns_SockCancelCallback Ns_SockCancelCallbackEx whereas the task is much more elaborate. The question is who would benefit from task interface? Are there any immediate ideas? For what they (AS) wrote it for? What can it do what Tcl event loop can't? Zoran |