http://qs321.pair.com?node_id=778536


in reply to Socket Handle not sending data ?

push that created socket handle(no need to push the port number too) into an array, and iterate through that array to send data when you want to.
that text file idea won't work.
I am not sure about, whether one can persistently store a socket handle into a file and use it on the next launch of the same script. This could happen rarely and I think you have not encountered a relevant situation like this.


Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.