SSHForwardPort Property

The TCP port in the remote host.

Syntax

ANSI (Cross Platform)
int GetSSHForwardPort();
int SetSSHForwardPort(int iSSHForwardPort); Unicode (Windows) INT GetSSHForwardPort();
INT SetSSHForwardPort(INT iSSHForwardPort);
@property (nonatomic,readwrite,assign,getter=SSHForwardPort,setter=setSSHForwardPort:) int SSHForwardPort;
- (int)SSHForwardPort;
- (void)setSSHForwardPort:(int)newSSHForwardPort;
#define PID_SSHTUNNEL_SSHFORWARDPORT 43

IPWORKSSSH_EXTERNAL void* IPWORKSSSH_CALL IPWorksSSH_SSHTunnel_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSSH_EXTERNAL int IPWORKSSSH_CALL IPWorksSSH_SSHTunnel_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

The SSHForwardPort property specifies a service port on the remote host to connect to.

A valid port number (a value between 1 and 65535) is required for the connection to take place. The property must be set before a connection is attempted and cannot be changed once a connection is established. Any attempt to change this property while connected will fail with an error.

Data Type

Integer

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