Preconnections are reusable after being used to initiate a
Connection, whether this Connection was closed or not. Hence, it
would be correct to continue as follows after the above example:
//.. carry out adjustments to the Preconnection, if desired
Connection := Preconnection.Initiate()
What would happen here? I can imagine a "compiler" turning this into
a noop. I can also see it would kill the existing Connection state and
start a new one. This could be to a different IP address (eg if the DNS
name has A and AAAA). When starting a new one, what would happen to any
Message or Event queues for Connection ?
From the review by Paul Wouters, COMMENT part:
I have a question on this code:
What would happen here? I can imagine a "compiler" turning this into a noop. I can also see it would kill the existing Connection state and start a new one. This could be to a different IP address (eg if the DNS name has A and AAAA). When starting a new one, what would happen to any Message or Event queues for Connection ?