Поделиться через


HCWebSocketSetProxyUri

Set the proxy URI for the WebSocket.

Syntax

HRESULT HCWebSocketSetProxyUri(  
         HCWebsocketHandle websocket,  
         const char* proxyUri  
)  

Parameters

websocket   _In_
Type: HCWebsocketHandle

The handle of the WebSocket.

proxyUri   _In_z_
Type: char*

The UTF-8 encoded proxy URI for the WebSocket.

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, E_INVALIDARG, E_OUTOFMEMORY, or E_FAIL.

Remarks

This must be called prior to calling HCWebSocketConnectAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.GDK.lib

See also

httpClient