IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

LocalHost Property

The address of the Bluetooth device through which connections are initiated or accepted.

Syntax

ANSI (Cross Platform)
char* GetLocalHost();
int SetLocalHost(const char* lpszLocalHost); Unicode (Windows) LPWSTR GetLocalHost();
INT SetLocalHost(LPCWSTR lpszLocalHost);
#define PID_BTPORT_LOCALHOST 6

IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_BTPort_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSBT_EXTERNAL int IPWORKSBT_CALL IPWorksBT_BTPort_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

The LocalHost property contains the address of the Bluetooth device.

In hosts with multiple Bluetooth devices setting LocalHost to the address of a device will make the class initiate connections (or accept in the case of server components) only through that device.

If the class is connected, the LocalHost property shows the Bluetooth address of the interface through which the connection is made in the standard hex encoded, colon separated format (00:02:72:C6:64:B7).

NOTE: LocalHost is not persistent. You must always set it in code, and never in the property window.

Data Type

String

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 C++ Edition - Version 20.0 [Build 7941]