IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

LocalPort Property

The port in the Bluetooth device to which the class binds.

Syntax

ANSI (Cross Platform)
int GetLocalPort();
int SetLocalPort(int iLocalPort); Unicode (Windows) INT GetLocalPort();
INT SetLocalPort(INT iLocalPort);
#define PID_BTPORT_LOCALPORT 7

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

0

Remarks

This property must be set before a connection is attempted. It instructs the class to bind to a specific port (or communication endpoint) in the Bluetooth device.

Setting this property to 0 (default) enables the system to choose a port at random. The chosen port will be shown by the LocalPort property after the connection is established.

LocalPort cannot be changed once a connection is made. Any attempt to set this property when a connection is active will generate an error.

Data Type

Integer

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