Re: [twsocket] Problem on connection successful / unsuccessful handling

2009-11-19 Thread Wilfried Mestdagh
Hello Andrea, You should check in every event if there is a Winsock error. When nobody is listening then OnSessionConnected is fired with winsock error 10061. Then you know there is no connection. That is how winsock works. Use the OnChangeState only for displaying options if you need it. If you

[twsocket] Problem on connection successful / unsuccessful handling

2009-11-19 Thread Andrea Mennini
Hi, I have a problem with connection successful / unsuccessful handling. TWsocket is version 5.5. I use it to send some commands to a remote, without any ACK, I.e. I open the connection, when the connection is on I write and so on. Everything works when the remote exists. If I try to connec

[twsocket] Problem on connection successful / unsuccessful handling

2009-11-19 Thread Andrea Mennini
Hi, I have a problem with connection successful / unsuccessful handling. TWsocket is version 5.5. I use it to send some commands to a remote, without any ACK, I.e. I open the connection, when the connection is on I write and so on. Everything works when the remote exists. If I try to connec