nn::http::Connection::SetProxy Member Function

Syntax

nn::Result SetProxy(
     const char * pProxyName,
     u16 port,
     const char * pUserName,
     const char * pPassword
);

Arguments

Name Description
in pProxyName Host server name of the proxy server.
in port Port number of the proxy server.
in pUserName User name for basic authentication by the proxy server.
in pPassword Password for basic authentication by the proxy server.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultInvalidParamErr Error indicating an invalid parameter. Specify valid values for all parameters and call this function again.
ResultNotConnectedErr Error indicating that no target URL was assigned to the Connection object. No action performed because the Connection object has not been initialized by a successful call of Initialize.
ResultNotInitializedErr Error indicating that the library is not initialized. None of this library's functions can be used until you first call nn::http::Initialize.
A value other than the above. Unexpected error (See http_Result.h for details).

Description

Sets the proxy server to use for the connection.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL