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
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,
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
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
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;
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, instead
*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
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',
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
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
10 matches
Mail list logo