[A]Add sdk version

[B]Fix bug in README file
This commit is contained in:
Livox-SDK
2019-02-27 11:56:23 +08:00
parent 1da39d9ac8
commit ff4c0b6740
7 changed files with 61 additions and 15 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ bool FindLocalIP(const struct sockaddr_in &client_addr, uint32_t &local_ip) {
IP_ADAPTER_INFO *pAdapter = reinterpret_cast<IP_ADAPTER_INFO *>(pAdapterInfo.get());
if (NO_ERROR == dlRetVal && pAdapter != NULL) {
while (pAdapterInfo) {
while (pAdapter) {
std::string str_ip = pAdapter->IpAddressList.IpAddress.String;
std::string str_mask = pAdapter->IpAddressList.IpMask.String;
ULONG host_ip = inet_addr(const_cast<char *>(str_ip.c_str()));
+8 -1
View File
@@ -30,6 +30,14 @@
using namespace livox;
IOThread *g_thread = NULL;
void GetLivoxSdkVersion(LivoxSdkVersion *version) {
if (version != NULL) {
version->major = LIVOX_SDK_MAJOR_VERSION;
version->minor = LIVOX_SDK_MINOR_VERSION;
version->patch = LIVOX_SDK_PATCH_VERSION;
}
}
bool Init() {
bool result = false;
do {
@@ -59,7 +67,6 @@ bool Init() {
result = false;
break;
}
result = true;
} while (0);