Hello.
I've written a small C based daemon listening on 999 port. It doesn't do
much, but I want to move some of the functions from C to TCL.
I'm using Ns_SockListenCallback() and have SOCKET to work with. How do I
allow Tcl to use this socket?
--
WK
If you're creating the socket in your C module using Tcl channels, I think
you just need to get the socket id back and use the standard puts, gets and
so on.
If you aren't using Tcl channels, you'll need to create your own Tcl
commands and use them to read/write bytes.
See nsopenssl for an examp
Wojciech Kocjan wrote:
>
> Hello.
>
> I've written a small C based daemon listening on 999 port. It doesn't do
> much, but I want to move some of the functions from C to TCL.
>
> I'm using Ns_SockListenCallback() and have SOCKET to work with. How do I
> allow Tcl to use this socket?
>
> --
> WK
Y