Page 1 of 1

Close opensockets after 30 sec

Posted: Tue May 12, 2020 10:08 pm
by ace16vitamine
Dear all,

is there any way to close open sockets after 30 sec? socket timeout does not work because I want to kill the opensocket
whatever datas will be transfered.

Regards
Stef

Re: Close opensockets after 30 sec

Posted: Wed May 13, 2020 7:00 am
by Thierry
ace16vitamine wrote:
Tue May 12, 2020 10:08 pm
is there any way to close open sockets after 30 sec? socket timeout does not work because
I want to kill the opensocket whatever datas will be transfered.
Hi Stef,

socket timeout won't do what you're looking at.
I believe you want this one: close socket socketID

And to do it after 30 seconds (pseudo-code):

Code: Select all

open socket ...
send "closeThisSocket" to me in 30 seconds

-----------------------
on closeThisSocket
     close socket socketID
end closeThisSocket

HTH,

Thierry

Re: Close opensockets after 30 sec

Posted: Wed May 13, 2020 8:38 pm
by ace16vitamine
Hi,

this does only work from the one who is open the socket.

But I need to do this from the "Server":
accept secure connections on port 9999 with message "verbindung_client_read"

Thanks
Stef