> I´m having some issues with socket flushing due to the messageloop that
What issues? > What is the purpose of calling MessagePump over here? Good question :) This dates from 1994... -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -----Oorspronkelijk bericht----- > Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > Namens Éric Fleming Bonilha > Verzonden: donderdag 21 juli 2011 22:30 > Aan: ICS support mailing > Onderwerp: [twsocket] Socket flushing > > Hi > > I´m having some issues with socket flushing due to the messageloop that > it calls: > > procedure TCustomWSocket.Flush; > begin > while (FHSocket <> INVALID_SOCKET) and { No more socket } > (not bAllSent) do begin { Nothing to send } > { Break; } > TryToSend; > MessagePump; > end; > end; > > If I override the Flush method and remove the messagePump in my derived > socket class: > > procedure TMySocket.Flush; > begin > while (FHSocket <> INVALID_SOCKET) and { No more socket } > (not bAllSent) do begin { Nothing to send } > { Break; } > TryToSend; > end; > end; > > What consequences I will have? Does this routine has the possibility to > enter on a never ending loop without the MessagePump call? > What is the purpose of calling MessagePump over here? > > Thanks > Eric > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be