Hi,
I have found a curious situation when using wip_TCPServerCreate. If I make the a TCP connection after the listening server is established the event handler is called and everything works well. However when the connection is made at almost the same time as the call to the TCPServerCreate, the connection is successfully but the handler is not called. I think this means the TCP channel is not spawned. But the TCP connection is made, a netstat on my pc confirms an established connection with remote and local port numbers.
I can then successfully make a number of concurrent connections, still without the the handler firing. Even closing all connections and making a new one has the same effect. It is not a time thing, I have waited 10 minutes still nothing…
The only way to get the handler to fire again is to close and re-open the listening tcp server. As it is not possible to differentiate the between the situation of no one wanting to connect and the above issue, I cannot detect the issue and resolve it.
Has anyone else observed this? Is there a way to re-attach the handler to the TCP Server without closing it? Is there any way to check the TCP server status? Where are the spawned TCP channels.
My brain hurts…