Re: [tkined] Tcl_CreateFileHandler and Windows NT

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Sat, 29 Nov 1997 00:39:08 +0100 (MET)

clau@plaintree.com said:

clau> However, I can share the following experience. If you
clau> create two stubs (empty functions) for the two functions
clau> missing, tnm2.1.7 will compile, link and even work. The
clau> things you'll miss are asynchronous callbacks for the
clau> "snmp" and "udp" commands. So if you can do everything
clau> synchronously, tnm2.1.7 will work with tcl8.0 for NT.

There is actually a better workaround. I have created two functions
which I call TnmCreateSocketHandler() and TnmDeleteSocketHandler().
They simply call Tcl_CreateFileHandler() and Tcl_DeleteFileHandler()
under UNIX. On NT, you can get them implemented by calling
Tcl_CreateChannelHandler() and Tcl_DeleteChannelHandler(). Of course,
you have to maintain a list of the channels created on the sockets,
but that is straight forward to do.

clau> Does anyone know why Sun hasn't put UDP support into TCL core?

Because they love to add new features. There are lots of unfinished
things in the Tcl/Tk core - this is just one example.

Juergen

-- 
Juergen Schoenwaelder  schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany.        (Tel. +49 531 / 391 3283)
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.