Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCPrimaryRoute::SetServerAndPort[C++]

FPCPrimaryRoute.SetServerAndPort [Visual Basic]

[C++]

The SetServerAndPort method sets the name of the upstream proxy server on the primary route and the ports on which it listens.

HRESULT SetServerAndPort(
  BSTR ServerName,
  long Port,
  long SSLPort
);

Parameters

ServerName
[in] BSTR that specifies the name of the upstream proxy server on the primary route.
Port
A 32-bit integer that specifies the port number on which the upstream proxy server listens. It can have a value from 1 to 65535.
SSLPort
A 32-bit integer that specifies the port number on which the upstream proxy server listens for SSL requests. It can have a value from 1 to 65535.

Return Values

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[Visual Basic]

The SetServerAndPort method sets the name of the upstream proxy server on the primary route and the ports on which it listens.

Sub SetServerAndPort( _
  ByVal ServerName As String, _
  ByVal Port As Long, _
  ByVal SSLPort As Long _
)

Parameters

ServerName
[in] String that specifies the name of the upstream proxy server on the primary route.
Port
A 32-bit integer that specifies the port number on which the upstream proxy server listens. It can have a value from 1 to 65535.
SSLPort
A 32-bit integer that specifies the port number on which the upstream proxy server listens for SSL requests. It can have a value from 1 to 65535.

Return Values

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCPrimaryRoute