ServicePort Property
The port on which the service is listening.
Syntax
ANSI (Cross Platform) int GetServicePort();
int SetServicePort(int iServicePort); Unicode (Windows) INT GetServicePort();
INT SetServicePort(INT iServicePort);
#define PID_BTINFO_SERVICEPORT 27 IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_BTInfo_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSBT_EXTERNAL int IPWORKSBT_CALL IPWorksBT_BTInfo_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property specifies the port on which the service is listening.
When the ServiceProtocol is RFCOMM, valid values are from 1-30 inclusive. When the ServiceProtocol is L2CAP, valid values are an odd number less than or equal to 32765.
This property is not available at design time.
Data Type
Integer