| View previous topic :: View next topic |
| Author |
Message |
Manuel Parma Guest
|
Posted: Mon Jul 21, 2003 5:24 am Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
Wich socketserver do you use?
Trey with my socket server and tell me if it work
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265
And uncheck Show Host Name option in connection menu
Manuel
"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote
| Quote: |
I have a three-tier app based Socket Server.
But when I run the App and then i go to have lunch, and about ten minutes
later come back.
Re-Opration my opened and Runing App, it Rasie a Error like this :
windows socket error:(10054),on API 'recv'
and i have to ReStart my App to work.
Check my socket Server property:
inacive timeout: 0
thanks for your idea!
|
|
|
| Back to top |
|
 |
hydonlee Guest
|
Posted: Mon Jul 21, 2003 6:25 am Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
thanks for your reply.
I use borland Socket Server for delphi 4.04
File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server
"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
|
|
| Back to top |
|
 |
Jaroslav Demin Guest
|
Posted: Mon Jul 21, 2003 10:35 am Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
May be my story can help...
I have project writeen with Delhi 4. I tried to migrate it to Delphi 6.
Difficulties began with Treading Model = tmApartment because Delphi 6 - is
really multi-threaded. So, get a look at my code:
procedure TRemoteDataModule1.RemoteDataModuleCreate(Sender: TObject);
begin
// In delphi 6 I can't access to global variables
// from thread
// I must access it in safe mode
Usr:=FmMain.LVUsers.Items.Add; // it's wrong!!!
Usr.Caption:='Not login information';
end;
That is why my server App stops for 10 minutes
May be you are in the same sutiation
Thank you
"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote
| Quote: |
thanks for your reply.
I use borland Socket Server for delphi 4.04
File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server
"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
Wich socketserver do you use?
Trey with my socket server and tell me if it work
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265
And uncheck Show Host Name option in connection menu
Manuel
|
|
|
| Back to top |
|
 |
hydonlee Guest
|
Posted: Tue Jul 22, 2003 5:00 am Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
thanks Jaroslav Demin.
My Applicatin is writed with delphi4 too. and now I have migate it to delphi 5.
and Treading Model use tmSigle.
like this :
initialization
TComponentFactory.Create(ComServer,TClass1,
Class_Class1,ciMultiInstance,tmSingle);
"Jaroslav Demin" <dejar (AT) mail (DOT) ru> wrote:
| Quote: | May be my story can help...
I have project writeen with Delhi 4. I tried to migrate it to Delphi 6.
Difficulties began with Treading Model = tmApartment because Delphi 6 - is
really multi-threaded. So, get a look at my code:
procedure TRemoteDataModule1.RemoteDataModuleCreate(Sender: TObject);
begin
// In delphi 6 I can't access to global variables
// from thread
// I must access it in safe mode
Usr:=FmMain.LVUsers.Items.Add; // it's wrong!!!
Usr.Caption:='Not login information';
end;
That is why my server App stops for 10 minutes
May be you are in the same sutiation
|
|
|
| Back to top |
|
 |
Manuel Parma Guest
|
Posted: Wed Jul 23, 2003 2:08 am Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
I have a version fixed for delphi 4
write me in private for get your copy
Manuel
"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote
| Quote: |
thanks for your reply.
I use borland Socket Server for delphi 4.04
File Name: SCKTSRVR.EXE
commont: Borland Socket Server
File Version: 5.0.5.62
CopyRights: Copyright c 1997-1999 Inprise Corporation
Production Version : 5.0
Production Name: Borland Socket Server
"Manuel Parma" <mparma (AT) usa (DOT) net> wrote:
Wich socketserver do you use?
Trey with my socket server and tell me if it work
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=18265
And uncheck Show Host Name option in connection menu
Manuel
|
|
|
| Back to top |
|
 |
Russ Holcomb Guest
|
Posted: Wed Jul 23, 2003 8:21 pm Post subject: Re: Socket Server refuse me after standing ten minutes! |
|
|
Every 20 seconds or so I call a heartbeat function to keep the connection
alive.
Russ
"hydonlee" <hydonlee (AT) hotmail (DOT) com> wrote
| Quote: |
I have a three-tier app based Socket Server.
But when I run the App and then i go to have lunch, and about ten minutes
later come back.
Re-Opration my opened and Runing App, it Rasie a Error like this :
windows socket error:(10054),on API 'recv'
and i have to ReStart my App to work.
Check my socket Server property:
inacive timeout: 0
thanks for your idea!
|
|
|
| Back to top |
|
 |
|