Re: [twsocket] Socket flushing

2011-07-30 Thread Arno Garrels
Arno Garrels wrote: > Wilfried Mestdagh wrote: >> H Eric, >> >>> If I keep a loop like this >>> >>> while (FHSocket <> INVALID_SOCKET) and (not bAllSent) do >>> TryToSend; >>> >>> And TryToSend fails, will it fail everytime if I don´t call the >>> message pump? In this case an infinite loop wo

Re: [twsocket] Socket flushing

2011-07-30 Thread Arno Garrels
Wilfried Mestdagh wrote: > H Eric, > >> If I keep a loop like this >> >> while (FHSocket <> INVALID_SOCKET) and (not bAllSent) do >> TryToSend; >> >> And TryToSend fails, will it fail everytime if I don´t call the >> message pump? In this case an infinite loop would happen right? > > I think

Re: [twsocket] Socket flushing

2011-07-30 Thread Wilfried Mestdagh
Hi Eric, If the reason that you call the Flush method is because you want to be sure all is sent before closing the socket then you can better call ShutDown(1) method. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -- To unsubscribe or change

Re: [twsocket] Socket flushing

2011-07-30 Thread Wilfried Mestdagh
H Eric, > If I keep a loop like this > > while (FHSocket <> INVALID_SOCKET) and (not bAllSent) do > TryToSend; > > And TryToSend fails, will it fail everytime if I don´t call the message > pump? In this case an infinite loop would happen right? I think so yes. -- mvg, Wilfried http://www.me