Markus Humm wrote:
> Hello Arno,
>
> thanks for your replies!
>
>>> FreeAndNil(a);
>>
>> Oh, that's not a good idea, free it in SessionClose event.
>
> Okay, will try this. In the OnSessionClosed of that instance
> a, right? Since the listening server socket won't get a session closed
> because
Hello Arno,
thanks for your replies!
>> FreeAndNil(a);
>
> Oh, that's not a good idea, free it in SessionClose event.
Okay, will try this. In the OnSessionClosed of that instance
a, right? Since the listening server socket won't get a session closed
because he has no longer control about it.
Markus Humm wrote:
> Hello,
>
> I've a TCP connection (simple TWSocket, only one PC may connect) and
> want to implement some keep-alive now. The rest of the application
> seems to work well, but the keepalive killed my whole day now without
> much success.
That's not difficult.
>
> Currently I
Hello,
I've a TCP connection (simple TWSocket, only one PC may connect) and
want to implement some keep-alive now. The rest of the application seems
to work well, but the keepalive killed my whole day now without much
success.
Currently I'm doing this in the OnSessionAvailable of the server: