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
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
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
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
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',
*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
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
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
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
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
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
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
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
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
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
)
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
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
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
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
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
> 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
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
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
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
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
> >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
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.
> 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
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
29 matches
Mail list logo