RemotePort Property

This property shows the TCP port on the remote host through which the connection is coming.

Syntax

ANSI (Cross Platform)
int GetRemotePort(int iConnectionId);

Unicode (Windows)
INT GetRemotePort(INT iConnectionId);
- (int)remotePort:(int)connectionId;
#define PID_IPDAEMON_REMOTEPORT 14

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_IPDaemon_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);

IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_IPDaemon_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

This property shows the TCP port on the remote host through which the connection is coming.

The connection must be valid or an error will be fired.

The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the ConnectionCount property.

This property is read-only and not available at design time.

Data Type

Integer

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