Handling disconnect by multiple tcl scrips

Version 1
    This document was generated from CDN thread

    Created by: Grant Bagdasarian on 22-02-2012 07:15:29 AM
    Hello,
     
    How does TCL handle ev_disconnected events when there are two TCL scripts involved? Lets say the first tcl script does an handoff to another tcl script, but for some reason the connection is disconnected but we're still in the execution of the 2nd tcl script. This one catches the ev_disconnected event. Will the 1st one also receive this event? Or does it receive the ev_returned event?

     
    Thanks
     
    Grant

    Subject: RE: Handling disconnect by multiple tcl scrips
    Replied by: Grant Bagdasarian on 22-02-2012 10:24:30 AM
    Hello,

    Thank you. That's what I thought.

    Regards,

    Grant

    Subject: RE: Handling disconnect by multiple tcl scrips
    Replied by: Raghavendra Gutty Veeranagappa on 22-02-2012 08:08:04 AM
    Hi Grant,

    The 1st script will not catch ev_disconnected event if it is occured in 2nd script. the 1st script will receive ev_returned only when you call "handoff return" command in second script.

    Thanks,
    Raghavendra