ThingWorx C SDK
Functions
twHttpProxy.h File Reference

HTTP proxy connection function prototype. More...

#include "twOSPort.h"

Go to the source code of this file.

Functions

int connectToProxy (twSocket *s, char *authCredentials)
 Opens the socket and connects through the proxy specified in the twSocket structure. More...
 

Detailed Description

HTTP proxy connection function prototype.

Function Documentation

int connectToProxy ( twSocket s,
char *  authCredentials 
)

Opens the socket and connects through the proxy specified in the twSocket structure.

Parameters
[in]sA pointer to the twSocket to connect.
[in]authCredentialsAuthorization credentials to connect with. If NULL, will use the credentials in the s twSocket structure.
Returns
#TW_OK if successful, positive integral on error code (see twErrors.h) if an error was encountered.
Note
The user should always pass NULL in authCredentials.