Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

When Dexter's on the Internet, can Hell be far behind?"


devel / comp.lang.xharbour / Re: Help with LETODB and xharbour

SubjectAuthor
o Re: Help with LETODB and xharbourAnderson Cardoso

1
Re: Help with LETODB and xharbour

<3a5d28cb-f2bb-4dcd-a432-4ab34a72f701n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17084&group=comp.lang.xharbour#17084

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:790:0:b0:6cb:ebb2:2bd4 with SMTP id 138-20020a370790000000b006cbebb22bd4mr17230023qkh.612.1663695526257;
Tue, 20 Sep 2022 10:38:46 -0700 (PDT)
X-Received: by 2002:a25:dfd6:0:b0:6af:fa4d:33f5 with SMTP id
w205-20020a25dfd6000000b006affa4d33f5mr20467150ybg.253.1663695526042; Tue, 20
Sep 2022 10:38:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 20 Sep 2022 10:38:45 -0700 (PDT)
In-Reply-To: <4344f855-cc77-432e-82cf-8dda42d3d134@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=206.42.32.40; posting-account=vXb10QoAAACtql4X4XBjGCZA6sGzs_sw
NNTP-Posting-Host: 206.42.32.40
References: <7cab6d6c-8647-40a2-9add-0c399d174549@googlegroups.com> <4344f855-cc77-432e-82cf-8dda42d3d134@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3a5d28cb-f2bb-4dcd-a432-4ab34a72f701n@googlegroups.com>
Subject: Re: Help with LETODB and xharbour
From: acardososilva@gmail.com (Anderson Cardoso)
Injection-Date: Tue, 20 Sep 2022 17:38:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4504
 by: Anderson Cardoso - Tue, 20 Sep 2022 17:38 UTC

Em quinta-feira, 2 de novembro de 2017 às 15:21:41 UTC-2, culikr@gmail..com escreveu:
> Hi
> much better is use sqlrdd or RDDADS
>
> Regards
> Luiz
> Em sexta-feira, 27 de outubro de 2017 17:59:26 UTC-2, jmrodr...@gmail.com escreveu:
> > I work with xHarbour 1.2.3 Intl. (SimpLex) (Build 20170513) and BCC 55.
> > I want to try the letodb library.
> > I downloaded the latest version from http://www.kresin.ru/en/letodb.html (letodb-2.17-b3.bcc and letodb-2.17-b3.src).
> >
> > I use this test program:
> >
> > function main()
> >
> > local cServer:='//127.0.0.1:2812/' // IPadress of server
> >
> > REQUEST LETO
> > RDDSETDEFAULT("LETO")
> >
> > if Leto_Connect(cServer)==-1 // is the server listening?
> > ? 'No hay conexion con el servidor ' + cServer
> > ? 'Error:' + str(LETO_CONNECT_ERR())
> > else
> > ? 'Conexión correcta con el Servidor' + cServer
> > endif
> >
> > RETURN nil
> >
> > I run the letodb server without problems:
> >
> >
> > LETODB.INI:
> >
> > Port=2812
> > DataPath=C:\DEV\LETODB
> > Logfile=letodb.log
> > Default_Driver=CDX
> >
> >
> > LETODB.LOG:
> >
> > 10/27/17 20:55:43: Leto DB Server has been started.
> > Leto DB Server v.2.17b3 ! INIT: DataPath=C:\DEV\LETODB, ShareTables=0, MaxUsers=500, MaxTables=5000, CacheRecords=10
> >
> >
> > I compile the test program with HARBOUR it works correctly but if I compile it in my environment (xHarbour + BCC52) it gives error 7 when trying to connect:
> >
> > No hay conexion con el servidor //127.0.0.1:2812/
> > Error: 7
> >
> > I do not know why. Some help?
> >
> > Thank's!!!

In the reade.txt it says:
2.5 xHarbour

SERVER: the server itself must be build with Harbour, cannot be done with xHB.
Same applies for utils like console monitor.

CLIENT: client library (RDD) can be build with xHarbour, use the 'rddleto.lib.xbp' definition for
xBuilder. For Windows ( but not for XCC ), it will by default use a second thread ( without HVM ),
so the executable must be linked with a library containing '_beginthreadex()'.
cFlag define: LETO_NO_THREAD=1 set for xHB will disable this and the need for threading function,
[ C-compiler: note that xBuilder doesn't store used C-compiler -- change it on demand.
XCC: can't compile 3rd party 'lz4.c', compile it with PellesC >= 4.5 manually,
and replace it in list of files for xBuilder with resulting 'lz4.obj':
pocc.exe -Fo"obj\lz4.obj" -Ot -I"include" -I"source\3rd\lz4\lib" -I%PATH_XHB%"\include"
-I%PATH_POCC%"\Include" -I%PATH_POCC%"\include\Win" "source\3rd\lz4\lib\lz4.c"

So, all we need is to compile the LIB with xHarbour.
The server can be done with Harbour or downloaded here: https://linguagemclipper.com.br/blogs/tutoriais/tutorial-letodbf-como-servico-do-windows

I am trying to compile this LIB with no success. Why don´t you include this RDDLETO.LIB in the package of xHarbour v1.2.3 ? All we need is the lib compiled with same version of xHarbour used.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor