Gentee Programming Language > Documentation > Libraries Download documentation

inet_proxyenable

The function allows you to enable or disable the proxy server for various protocols. Initially, the proxy server must be specified using the inet_proxy function.
 
uint inet_proxyenable(
      uint   flag,
      uint   enable
)

Parameters

flagThe flag specifying for which protocols the proxy should be enabled or disabled.
$PROXY_HTTPProxy server for the HTTP protocol
$PROXY_FTPProxy server for the FTP protocol
$PROXY_ALLProxy server for all protocols
enableSpecify 1 to enable the proxy server or 0 to disable the proxy server.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.