PFN_WEBSOCKET_COMPLETION Funtion
Definisce il prototipo della funzione di completamento WebSocket.
Sintassi
typedef VOID(WINAPI* PFN_WEBSOCKET_COMPLETION)(
HRESULT hrError,
VOID* pvCompletionContext,
DWORD cbIO,
BOOL fUTF8Encoded,
BOOL fFinalFragment,
BOOL fClose
);
Parametri
hrError
Codice di errore generato dall'operazione.
pvCompletionContext
Punta alle informazioni sul contesto di completamento per l'operazione.
cbIO
Numero di byte di I/O nell'ultima chiamata.
fUTF8Encoded
true
se i dati sono codificati unicode (UTF-8); in caso contrario, false
.
fFinalFragment
true
se questo è il frammento finale da scrivere; in caso contrario false
, .
fClose
true
per chiudere Il WebSocket dopo questa operazione; in caso contrario false
, .
Valore restituito
Questa funzione non restituisce un valore.
Requisiti
Tipo | Descrizione |
---|---|
Client | - IIS 7.0 in Windows Vista - IIS 7.5 in Windows 7 - IIS 8.0 in Windows 8 - IIS 10.0 in Windows 10 |
Server | - IIS 7.0 in Windows Server 2008 - IIS 7.5 in Windows Server 2008 R2 - IIS 8.0 in Windows Server 2012 - IIS 8.5 in Windows Server 2012 R2 - IIS 10.0 in Windows Server 2016 |
Prodotto | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - IIS Express 7.5, IIS Express 8.0, IIS Express 10.0 |
Intestazione | Iiswebsocket.h |