Hi Kenn, You said i should be calling vwait. I thought that was not necessary in a Tk application ie. an event loop is already running. Regarding the example you have pointed me to i can't see anything in there that i have not followed. I have got the code sort of working when i don't use -async. But the problem with this way is that i am making a call to socket and after 5 secs i say failed to connect but i don't cancel my call to socket in any way. When the server does become available a connection does not get established until i call socket again. Here i was expecting the initial socket call to block until a connection was established. I am using the latest beta version of Tcl/Tk maybe that's my problem. Naheed. -----Original Message----- From: Kenn Persinger [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, October 01, 1997 9:41 PM To: vtcl Subject: Re: [vtcl] fileevent not working as i expect it to. "This was spouted from the mouth of Abbas Naheed!" > fileevent is not behaving as i expect it to. > Can somebody tell me where i a m going wrong. The trick with fileevents, is to make the last call of your statement to be vwait. sadly.. its not a nice a nice solution in any way shape or form. I can give you the address of a site that will give you an outstanding example of client server implimentation via tcl. http://www.sco.com/Technology/tcl/SocketExample.html I hope this helps some. and if you can figure out a way to make TCl do timed events w/o hanging the application (ie: background timed events) please let me know. -Kenn --------------------------------------------------------------------------- To unsubscribe from the Visual Tcl mailing list, please send a message to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the message body (where [EMAIL PROTECTED] is your e-mail address).
