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: Fri Sep 02 2005 - 15:38:30 CEST

Pat Thoyts wrote:
> Andrew Falanga <not_real@hp.com> writes:
>
>
>>Hi,
>>
>>I've verified this happens on both the Linux and Windows
>>platforms. After installing the TCLUDP extension I try to perform DNS
>>queries. I've been able to determine that UDP packets are being sent
>>and received almost instantly but the data isn't being read in into
>>memory (by TCL that is) until a dns query is performed using tcp. For
>>example, below is what I'm seeing from tcl shell (the latest UDPTCL
>>extension is loaded too, TCLUDP 1.0.7):
>>
>>% package require dns
>>1.2.1
>>% set u_tok [dns::resolve ietf.org]
>>::dns::1
>>% dns::status $u_tok
>>connect
>>% dns::name $u_tok
>>can't read "state(reply)": no such element in array
>>% set t_tok [dns::resolve ieee.org -protocol tcp]
>>::dns::2
>>% dns::status $u_tok
>>ok
>>% dns::name $u_tok
>>ietf.org
>>% dns::status $t_tok
>>ok
>>% dns::name $t_tok
>>ieee.org
>>
>>As I've mentioned above, I've been able to verify that the requests
>>are being sent and received using UDP but for some reason the event
>>handler being setup in the dns.tcl script isn't being called until I
>
>
> Try running an event loop - add
> after 2000 {set forever 1} ; vwait forever
> if this is a tclsh script.

Sorry for the ignorance, but where exactly in the script would I put this?

-- 
---------------------------------------------
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:47 2005