Re: [twsocket] Socket flushing

2011-07-27 Thread Wilfried Mestdagh
Hi Eric, TryToSend will exit if winsock returns WSAEWOULDBLOCK. I think that is the reason for the message pump call. I never used the Flush method. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be -Oorspronkelijk bericht- Van:

Re: [twsocket] Triggering DataAvailable

2011-07-27 Thread Lukáš Skála
I have very simillar situation, my clients (embedded units connected through GPRS) expect some sequence of bytes from server after connecting. Clients are able to send their data after they receive this starting sequence. I just send sequence of bytes in OnClientConnect events of server socket