#1 2016-09-03 03:57:33

vga
Member
Registered: 2016-08-18
Posts: 15

About TSQLHttpClient & TSQLDBSocketConnectionProperties

hello,

    My program need TSQLHttpClient to execute server functions, and I

    use  TSQLDBSocketConnectionProperties to open query,

    could TSQLHttpClient and  TSQLDBSocketConnectionProperties
    use the same port?


    Model := TSQLModel.Create([], ROOT_NAME);
    ClientA := TSQLHttpClient.Create('127.0.0.1', '8192', Model);
    Client.ServerTimeStampSynchronize;

   with

    fClientB := TSQLDBSocketConnectionProperties.Create('127.0.0.1:8192', 'myserver', 'myusername', 'password');

Last edited by vga (2016-09-03 03:58:27)

Offline

#2 2016-09-03 07:33:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,267
Website

Re: About TSQLHttpClient & TSQLDBSocketConnectionProperties

Under Windows, yes, it is possible, if the two HTTP servers use http.sys, and their own "root" name.

Offline

#3 2016-09-04 09:39:31

vga
Member
Registered: 2016-08-18
Posts: 15

Re: About TSQLHttpClient & TSQLDBSocketConnectionProperties

thank you.

I did not get it work. 

TSQLHttpClient to execute server functions, when return json datarows,  how convert result to clientdataset?

Offline

#4 2016-09-04 14:29:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,267
Website

Re: About TSQLHttpClient & TSQLDBSocketConnectionProperties

Offline

#5 2016-09-05 06:03:03

vga
Member
Registered: 2016-08-18
Posts: 15

Re: About TSQLHttpClient & TSQLDBSocketConnectionProperties

thank you.

Offline

Board footer

Powered by FluxBB