vuNetGetProxy()
Clarion prototype
Prototype: vuNetGetProxy(*CSTRING OutProxyHost, *LONG OutProxyPort), SIGNED, PROC, PASCAL, RAW, NAME(‘vuNetGetProxy’)
Purpose
Reads current proxy host and proxy port from vuMailKit runtime globals.
Parameters
| Parameter |
Type |
Description |
| OutProxyHost |
*CSTRING |
Output buffer receiving proxy host name/IP. |
| OutProxyPort |
*LONG |
Receives proxy port number. |
Return value / error codes
Example (Clarion)
rc LONG
server CSTRING(260)
port LONG
CLEAR(server)
port = 0
rc = vuNetGetProxy(server, port)
IF rc = 1
MESSAGE('Proxy=' & server & ':' & port)
ELSE
MESSAGE('vuNetGetProxy failed: ' & rc)
END
Notes
- Legacy alias: vuGetMailProxy().
- Returns runtime memory values; call vuGlobalsLoad() first if you need persisted registry values loaded into this process.
- AuthMode/OAuth is not used by this function.