Re: [twsocket] Twsocket Problem over Internet.

2017-11-11 Thread François Piette
> Your receiving is also likely to fail, LineMode should not be used when you expect binary data, Agreed. > and makes a program more complex than necessary swapping back and forward while receiving, checking line end is not very hard. Disagreed. What would be easier for Fatimire is to send the

Re: [twsocket] Twsocket Problem over Internet.

2017-11-11 Thread Angus Robertson - Magenta Systems Ltd
> I try send by block and have the same problem. > Sleep(100); If you changed that to Sleep(5000) it would probably work, but very slowly As I said originally, you should be using the OnDataSent to determine when the data is sent successfully, not just waiting and assuming the internet

Re: [twsocket] Twsocket Problem over Internet.

2017-11-11 Thread François Piette
Hi ! Sending is OK although not optimal because of buffering. At least, be sure to no close the socket before the sending is done: TWSocket will buffer data for you (up to the amount of available ram space). It is bette as Angus said, to send by blocks. For receiving, you must first receive the