LocalPort Property

The TCP port in the local host where the class listens.

Syntax

ANSI (Cross Platform)
int GetLocalPort();
int SetLocalPort(int iLocalPort); Unicode (Windows) INT GetLocalPort();
INT SetLocalPort(INT iLocalPort);
@property (nonatomic,readwrite,assign,getter=localPort,setter=setLocalPort:) int localPort;
- (int)localPort;
- (void)setLocalPort:(int)newLocalPort;
#define PID_AZURERELAYPROXY_LOCALPORT 20

IPWORKSMQ_EXTERNAL void* IPWORKSMQ_CALL IPWorksMQ_AzureRelayProxy_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSMQ_EXTERNAL int IPWORKSMQ_CALL IPWorksMQ_AzureRelayProxy_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property must be set before the class can start listening. If its value is 0, then the TCP/IP subsystem picks a port number at random. The port number can be found by checking the value of this property after the class is listening (ie. after successfully assigning True to the Listening property).

The service port is not shared among servers so two classs cannot be listening on the same port at the same time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 C++ Edition - Version 20.0 [Build 8155]