#2 mORMot 1 » NamedPipe Server can't accessed under windows service. » 2017-01-13 16:45:48

Xj307
Replies: 2

I write a NamedPipe Server (like '\\.\pipe\mORMot_AdvGuardDts_Rest.001') With Windows Service, when client accessed , report " Server not available - Invaild Request" Error.
But same code under Desktop Program, Client access Normal.
I use Windows 10 , Berlin 10.1.

Thanks!

#3 mORMot 1 » How to dynamically change the users during service operation? » 2017-01-10 11:48:18

Xj307
Replies: 1

I use mORMot to write a service program, the create code is as follows:

  fModel := TSQLModel.Create([TSQLAuthUser, TSQLAuthGroup],ROOT_NAME);
  fRestServer := TSQLRestServerFullMemory.Create(fModel,false);
  ServiceFactoryServer := fRestServer.ServiceDefine(TRestMethods,[IRestMethods], SERVICE_INSTANCE_IMPLEMENTATION);
  fRestServer.AuthenticationRegister(TSQLRestServerAuthenticationDefault);

At the start of service dynamically add user and user group information based on user tables in the database,
The problem is that I changed(update,delete or insert) the user information in the database,
How can I dynamically change the server and user and user group settings during service operation?

Thanks!

#5 mORMot 1 » How to get the client IP in ServerSide Methods? » 2016-12-28 04:45:27

Xj307
Replies: 2

I want to get the client IP in the server side Methods, how should I do?
Thanks!

Board footer

Powered by FluxBB