I started the server program and then the client program, but when I tried
to execute the Client1.connect method, I got an exception in the client
program of message:
raised exception class EIdSocketError with message 'Socket Error # 10061
Connection refused'.
I thought I did not set the server Active property to TRUE. I stopped both
programs, set the TIdTCPServer 's Active property to True and restarted the
server program, then the client program.
Now I got another error:
'EIdNoExecuteSpecified with message 'No execute handler found.''
Is there an onExecute handler on the server?
Rgds,
Martin
> I started the server program and then the client program,
> but when I tried to execute the Client1.connect method, I
> got an exception in the client program of message: raised
> exception class EIdSocketError with message 'Socket
> Error # 10061 Connection refused'.
The server was not active at the time.
> I thought I did not set the server Active property to TRUE.
> I stopped both programs, set the TIdTCPServer 's Active
> property to True and restarted the server program, then the
> client program. Now I got another error:
> 'EIdNoExecuteSpecified with message 'No execute handler found.''
You did not assign an event handler to the server's OnExecute event. You
must do that, unless you are going to use the server's CommandHandlers
collection instead. Otherwise, the OnExecute event is where all of your
work needs to go.
Gambit