Skip to content

Commit 502a087

Browse files
committed
Merge PR and attempt to recognize 1.9 servers
1 parent ce3c407 commit 502a087

File tree

6 files changed

+51
-4
lines changed

6 files changed

+51
-4
lines changed

NEWS

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Version 1.6.6-SNAPSHOT - xx xxx 2020
1+
Version 1.6.7-SNAPSHOT - xx xxx 202x
2+
3+
Version 1.6.6 - 26 Aug 2022
4+
* Merge pull request #101 from @linsomniac
5+
* See if we can recognize 1.9 servers. Note, there is none of the
6+
1.9 specific features in this version of librets
27

38
Version 1.6.5 - 12 Aug 2020
49
* Resolve hard coded CACert location

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# libRETS-Docker
1+
# libRETS
2+
3+
Please note: I have been away from the Real Estate industry for the past decade and it appears
4+
that NAR has gone silent over these repos. My last few attempts to contact them have been
5+
fruitless. The only reason I'm stil around and watching things is that I'm the last one with
6+
write access to the repo.
7+
8+
That said, I'll be happy to do PRs, but I no longer have a way of proving they work, so I will
9+
rely upon the community (or silence from the community) as an agreement to merge a PR.
10+
11+
Lastly, please remember that this _is_ Open Source.
12+
13+
MK, 26 Aug, 2022.
14+
15+
## libRETS-Docker
216
libRETS Docker is a RETS client library written in C++ (forked from the NAR library) built and packaged for Docker. This allows rapid development of RETS client applications by saving the developer from dealing with the RETS protocol details. The application writer can concentrate on their application thusly saving them time and money in the process.
317

418
Platform :

project/build/version.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VERSION = 1.6.6-SNAPSHOT
1+
VERSION = 1.6.6
22
HEX_VERSION = 010606

project/librets/include/librets/RetsSession.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ class RetsSession : public MetadataLoader
532532
static const char * RETS_1_7_2_STRING;
533533
static const char * RETS_1_8_STRING;
534534
static const char * RETS_1_8_0_STRING;
535+
static const char * RETS_1_9_STRING;
536+
static const char * RETS_1_9_0_STRING;
535537

536538
void RetrieveAction();
537539

project/librets/include/librets/RetsVersion.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@ enum RetsVersion
5353
/**
5454
* This is a RETS 1.8.0 server.
5555
*/
56-
RETS_1_8_0
56+
RETS_1_8_0,
57+
/**
58+
* This is a RETS 1.9 server.
59+
*/
60+
RETS_1_9,
61+
/**
62+
* This is a RETS 1.8.0 server.
63+
*/
64+
RETS_1_9_0
5765
};
5866

5967
}

project/librets/src/RetsSession.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const char * CLASS::RETS_1_7_STRING = "RETS/1.7";
5656
const char * CLASS::RETS_1_7_2_STRING = "RETS/1.7.2";
5757
const char * CLASS::RETS_1_8_STRING = "RETS/1.8";
5858
const char * CLASS::RETS_1_8_0_STRING = "RETS/1.8.0";
59+
const char * CLASS::RETS_1_9_STRING = "RETS/1.9";
60+
const char * CLASS::RETS_1_9_0_STRING = "RETS/1.9.0";
5961

6062
const int CLASS::MODE_CACHE = 0x01;
6163
const int CLASS::MODE_NO_STREAM = 0x02;
@@ -786,6 +788,14 @@ string CLASS::RetsVersionToString(RetsVersion retsVersion)
786788
{
787789
return RETS_1_8_0_STRING;
788790
}
791+
else if (retsVersion == RETS_1_9)
792+
{
793+
return RETS_1_9_STRING;
794+
}
795+
else if (retsVersion == RETS_1_9_0)
796+
{
797+
return RETS_1_9_0_STRING;
798+
}
789799
else
790800
{
791801
throw RetsException(str_stream() << "Invalid RetsVersion: "
@@ -819,6 +829,14 @@ RetsVersion CLASS::RetsVersionFromString(string versionString)
819829
{
820830
return RETS_1_8_0;
821831
}
832+
else if (versionString == RETS_1_9_STRING)
833+
{
834+
return RETS_1_9;
835+
}
836+
else if (versionString == RETS_1_9_0_STRING)
837+
{
838+
return RETS_1_9_0;
839+
}
822840
else if (versionString.empty())
823841
{
824842
return RETS_1_0;

0 commit comments

Comments
 (0)