Hi all,
I connect two devises. The first is the server, the second the client. Only the server can send to the client.
If the server will stop he sends "end" to the client with AStream1.Write(buffer). The next commands immediately are Astream1.Clear and Socket1.Close.
Sometimes the client don't receive "end" because "Write" is in a background thread and the Socket1 is closed before writing is complete.
Is there an event when writing is completed? I could put Socket1.Close in this event.
Thanks for your help
Lutz
I connect two devises. The first is the server, the second the client. Only the server can send to the client.
If the server will stop he sends "end" to the client with AStream1.Write(buffer). The next commands immediately are Astream1.Clear and Socket1.Close.
Sometimes the client don't receive "end" because "Write" is in a background thread and the Socket1 is closed before writing is complete.
Is there an event when writing is completed? I could put Socket1.Close in this event.
Thanks for your help
Lutz