[twsocket] Socket flushing

2011-07-21 Thread Éric Fleming Bonilha
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; } TryToS

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Wilfried Mestdagh
> When I call Client.Close the Client will be freed automatically > (destructor of Client will be called)? Yes. Sidenote: if you do this from withing an event then call CloseDelayed. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be http://www.expertsoftware.be > -Oors

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Arno Garrels
Lukas Skala wrote: > hello, > thank for quick and useful response. > i'll try to upgrade to V7 now because i'm still getting error > (catched by Server.OnBgException event), I'm getting AccessViolation > or InvalidOperation exceptions. Sounds like you are accessing pointers or objects when they ha

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
hello, thank for quick and useful response. i'll try to upgrade to V7 now because i'm still getting error (catched by Server.OnBgException event), I'm getting AccessViolation or InvalidOperation exceptions. These errors occurs after disconnecting client by server (i'm using timer - in same way as

Re: [twsocket] how to legally close and free client

2011-07-21 Thread Arno Garrels
Lukas Skala wrote: > hello, > I have server application based on TWSocketServer, clients are derived > from TWSocketClient class. > I need disconnect inactive clients. I'm not sure how to disconnect > client, I'm using this: > > procedure DisconnectMyClient(i: Integer); > var > C: TTcpSrvClient;

[twsocket] how to legally close and free client

2011-07-21 Thread Lukas Skala
hello, I have server application based on TWSocketServer, clients are derived from TWSocketClient class. I need disconnect inactive clients. I'm not sure how to disconnect client, I'm using this: procedure DisconnectMyClient(i: Integer); var C: TTcpSrvClient; {TTcpSrvClient = class(TWSocke

Re: [twsocket] squid NTLM proxy support

2011-07-21 Thread Arno Garrels
emanuele bizzarri wrote: > Hi, > in order to support squid proxy with NTLM auth, I've made some changes > to ics source code. > The problem I found was related to unicode, not supported by squid. Hello Emanuele, I agree with you that OverbyteIcsNtlmMsgs.pas only supports Unicode NTLM messages. Ho

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-21 Thread Merijn Bosma
Hi all, Still working on this issues, I have a lot of (confusing) test results, will not post it all here. I will definitely post the outcome of the investigation. For now a question. For me it seems atm that about half of the machines I install now simply give this strange behavior. I would

[twsocket] squid NTLM proxy support

2011-07-21 Thread emanuele bizzarri
Hi, in order to support squid proxy with NTLM auth, I've made some changes to ics source code. The problem I found was related to unicode, not supported by squid. I'm using OverbyteIcsV7. Is it possible to include my modifications inside ics official source code? Or maybe there is another way to d

[twsocket] Antwort: Re: TWSocket OnSessionAvailable problem

2011-07-21 Thread MFischer
> twsocket-boun...@elists.org schrieb am 21.07.2011 09:44:43: > Re: [twsocket] TWSocket OnSessionAvailable problem > Arno Garrels > an: > ICS support mailing > 21.07.2011 09:45 > Gesendet von: > twsocket-boun...@elists.org > > Yes, please use ICSv7 and if possible TWSocketServer. > Then try to incl

Re: [twsocket] TWSocket OnSessionAvailable problem

2011-07-21 Thread Arno Garrels
Arno Garrels wrote: > mfisc...@bfe.tv wrote: >> I tried although the TWSocketServer Component and encountered the >> same problem. >> Same with different Versions of ICS. i have tried with an older >> version and ICS-V6 from overbyte.be with Delphi 2006. >> Maybe i should try with ICS-V7? > > Yes,

Re: [twsocket] TWSocket OnSessionAvailable problem

2011-07-21 Thread Arno Garrels
mfisc...@bfe.tv wrote: > I tried although the TWSocketServer Component and encountered the same > problem. > Same with different Versions of ICS. i have tried with an older > version and ICS-V6 from overbyte.be with Delphi 2006. > Maybe i should try with ICS-V7? Yes, please use ICSv7 and if possib

Re: [twsocket] TWSocket OnSessionAvailable problem

2011-07-21 Thread MFischer
I tried although the TWSocketServer Component and encountered the same problem. Same with different Versions of ICS. i have tried with an older version and ICS-V6 from overbyte.be with Delphi 2006. Maybe i should try with ICS-V7? > twsocket-boun...@elists.org schrieb am 20.07.2011 18:27:56: > Re: