Re: Problems with DNS package in TCLLIB and the TCLUDP package
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Problems with DNS package in TCLLIB and the TCLUDP package

From: Andrew Falanga <not_real@hp.com>
Date: Thu Sep 01 2005 - 00:21:15 CEST

It's rather weird to respond to one's own message before anyone else has
but I wanted to add a curiosity I've uncovered while debugging this issue.

I noticed in the source code for the tcludp package that when the
upd_open command is called it actually opens the socket with the
following code:
statePtr->channel = Tcl_CreateChannel(&Udp_ChannelType, channelName,
                                      (ClientData) statePtr,
                                      (TCL_READABLE | TCL_WRITABLE |
TCL_MODE_NONBLOCKING));

As you can see, the guts of this procedure by default open in
non-blocking. However, I found that calling fconfigure on the socket
opened by this call shows that its in a blocking state unless fconfigure
is called to place it otherwise.

Any help would be appreciated. Thanks.

---------------------------------------------
Andrew R. Falanga (a non-HP employee)
Hewlett-Packard Company
11311 Chinden Blvd.
Boise, Idaho
---------------------------------------------
Please note: The e-mail address is purposely
mangled. I do not wish my account at HP to
become a spam haven.
Received on Thu Sep 29 14:34:24 2005