Re: [twsocket] disconnect problem with tcp socket

2011-02-10 Thread Francois PIETTE
am building a chat system and when a user is disconnected from there host there id is stuck within the socket so am wondering is there anyway of removing dead IDs once connection is lost to server? In my opinion, the best way to handle this is to implement at the application layer a kind of p

[twsocket] disconnect problem with tcp socket

2011-02-10 Thread Simon
Hello, am building a chat system and when a user is disconnected from there host there id is stuck within the socket so am wondering is there anyway of removing dead IDs once connection is lost to server? thanks -- To unsubscribe or change your settings for TWSocket mailing list please goto http

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, 10053 is when OS decide to stop the connection. Normally this is because of some network problem, a malfunctioning router or switch. But many virus scanners and firewalls are doing wierd things with TCP, so stop any service of it (not disable it) and test again. --- Rgds, Wilfried

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
exceptions are without errors well i checked all events on TWserverSocket and TWsocket and errors ocurs only here: *procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); ** begin {this is Socket = TWSocket} memo1.lines.add( Format('Error %d on SocketSes

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, oke we are getting somewhere :) > procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); > begin {this is Socket = TWSocket} > memo1.lines.add('Proxy Disconnected from Server!'); > memo1.lines.add( Format('Error %d on SocketSessionClosed',

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
*I don't see anywere in your code logging of the ErrCode argument in the TWSocket events! So it is not sure where you get the error 5* procedure TForm3.SocketSessionClosed(Sender: TObject; ErrCode: Word); begin {this is Socket = TWSocket} memo1.lines.add('Proxy Disconnec

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, > yes, error is on TWsocket! > here is code I don't see anywere in your code logging of the ErrCode argument in the TWSocket events! So it is not sure where you get the error 5 I also see you use OnError event of TWSocketServer and use GetLastError there. Don't use OnError, instea

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
here is code ## type TForm3 = class(TForm) Socket: TWSocket; Server: TWSocketServer; Button1: TButton; CheckBox1: TCheckBox; Memo1: TMemo; Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Label1: TLabel; Label2: TLabel; Memo2: TMemo; Memo3: TMemo; Button2: TButton; p

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
yes, error is on TWsocket! -- 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

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, As Arno already sayed this is not a winsock error. But to be sure (because I don't see it in your code example), we are talking about the ErrCode argument in the TWSocket events, right? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdag

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Arno Garrels
Ronaldo DeVinche wrote: > i log all errors and only error i have is on SocketSessionClosed: > *Error 5 on SocketSessionClosed* Sounds like the Windows system error code "ERROR_ACCESS_DENIED". -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://l

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Ronaldo DeVinche
i log all errors and only error i have is on SocketSessionClosed: *Error 5 on SocketSessionClosed* -- 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

Re: [twsocket] TWsocket disconnect in 60 seconds

2009-05-01 Thread Wilfried Mestdagh
Hello Ronaldo, At first sight I see nothing wrong with your code. However it is not normal that some of the sockets close without reason. Wich of the sockets do the close? Maybe the close is with a winsock error, then it will tell you more about the reason. You have at least log all the winsock er

[twsocket] TWsocket disconnect in 60 seconds

2009-04-30 Thread Ronaldo DeVinche
Hello! i have made a proxy (sniffer) based on TWsockets from www.overbyte.be all works perfect... i capture packet and if need before send it back i modify it the problem is that proxy disconnect in +/- 1 minute is there is way how to increase or even disable thous disconnect timup`s or whatever i

Re: [twsocket] Disconnect detection

2006-08-17 Thread Wilfried Mestdagh
Hello Frédéric, If you start a new subject pleasd do Not reply to an existing subject but start a new one. It is really not mutch work. > What's the best way to detect a broken connection. When connection will break then OnSessionClosed will fire. There you start a timer and after some seconds o

Re: [twsocket] Disconnect detection

2006-08-16 Thread Francois Piette
) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: "Frédéric SCHENCKEL" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, August 16, 2006 9:22 PM Subject: [twsocket] Disconnect detection > > He

[twsocket] Disconnect detection

2006-08-16 Thread Frédéric SCHENCKEL
Hello, I have a TWSocket who connects to a printer. What's the best way to detect a broken connection. TWSocket is only waiting for data from the printer (special printer...) therefore I do a TWSocket.connect. When the printer is Offline (power off for example) after the connection is esta

Re: [twsocket] Disconnect

2006-05-05 Thread Werner
14:46 Onderwerp: [twsocket] Disconnect > Hello All, > > I am newbie with TWSocket I have some critical problem with my > project : > > My client disconnected with out any reasons some time form Dial-up and > some times form my LAN Server side was built with Java and I

Re: [twsocket] Disconnect

2006-05-04 Thread Wilfried Mestdagh
Hello Abdullah, You can check winsock error in OnSessionClosed of your client program. If it does have an error and you never call Close(Delayed) in your client then you can assume that server close connection. If you have errorcode then possible it is due to data loss or some firewall interferin

[twsocket] Disconnect

2006-05-04 Thread Abdullah AlQasim
Hello All, I am newbie with TWSocket I have some critical problem with my project : My client disconnected with out any reasons some time form Dial-up and some times form my LAN Server side was built with Java and I am using TWSocket with our protocol for getting data My client

Re: [twsocket] Disconnect a client from FTPServer...

2005-10-20 Thread Francois Piette
> I'm trying to code a simple FTPServer using the ICS Demo > as a base. However, I want to be able to disconnect a user via the > server. I see the "FtpServer1.Disconnect()" method but I don't know how > to use it. > Could someone please explain how I would go about using this, > for example, in an

[twsocket] Disconnect a client from FTPServer...

2005-10-19 Thread Scott
Hi, This is my first post to the list so I hope I do it right. My question is as follows: I'm trying to code a simple FTPServer using the ICS Demo as a base. However, I want to be able to disconnect a user via the server. I see the "FtpServer1.Disconnect()" method but I don't know how to use it. C

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Dan
NOOP is a good one. Dan - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, May 16, 2005 2:44 PM Subject: Re: [twsocket] Disconnect from FTP Server [FTP Client] >Winsock nor the component will let you

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
doesn't know the command ! -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Artem Antonov" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, May 16, 2005 4:43 PM Subject: Re: [twsocket] Disconnect from FTP Server [FTP Clie

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Artem Antonov
On Mon, 16 May 2005 15:44:25 +0200 "Francois PIETTE" <[EMAIL PROTECTED]> wrote: Any command that do the less possible processing on the server. PWD and SYST are probably the best choices. SYST is not implemented on all servers. Probably sending an invalid command could also be good, just to rec

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
> >Winsock nor the component will let you know the server disconnected > >before you try to send something. So the solution is to periodically send a > >command just to get the error in case the server closed the connection. Note > >that periodically sending a command will probably prevent the serv

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Artem Antonov
On Mon, 16 May 2005 14:46:27 +0200 "Francois PIETTE" <[EMAIL PROTECTED]> wrote: Winsock nor the component will let you know the server disconnected before you try to send something. So the solution is to periodically send a command just to get the error in case the server closed the connection.

Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
> 1) Client connects to the FTP server > 2) After timeout or in the case of connection error FTP server close > connection > 3) FTP client recieve (immediately) message that FTP server is not > avialable > 4) Other actions on the side of client > > How I can realaize the 3) step? > Does anybody sol

[twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Artem Antonov
Hello, I've already written in this maling list about disconnect from FTP server in the case when FTP server close connection (how I can control this event to disconnect client immediately). Sorry, but I can't solving this problem, so I ask help again. The steps are: 1) Client connects to the F