struttura INTERNET_DIAGNOSTIC_SOCKET_INFO (wininet.h)

La struttura INTERNET_DIAGNOSTIC_SOCKET_INFO viene restituita dalla funzione InternetQueryOption quando il flag INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO viene passato insieme a un handle a una richiesta HTTP. La struttura INTERNET_DIAGNOSTIC_SOCKET_INFO contiene informazioni sul socket associato a tale richiesta HTTP.

Sintassi

typedef struct {
  DWORD_PTR Socket;
  DWORD     SourcePort;
  DWORD     DestPort;
  DWORD     Flags;
} INTERNET_DIAGNOSTIC_SOCKET_INFO, *LPINTERNET_DIAGNOSTIC_SOCKET_INFO;

Members

Socket

Descrittore che identifica il socket associato alla richiesta HTTP specificata.

SourcePort

Indirizzo della porta in cui è stata ricevuta la richiesta HTTP e la risposta.

DestPort

Indirizzo della porta in cui è stata inviata la risposta.

Flags

Valore Significato
IDSI_FLAG_KEEP_ALIVE
Impostare se la connessione proviene dal pool "keep-alive".
IDSI_FLAG_SECURE
Impostare se la richiesta HTTP usa un socket sicuro.
IDSI_FLAG_PROXY
Impostare se viene usato un proxy per raggiungere il server.
IDSI_FLAG_TUNNEL
Impostare se viene usato un proxy per creare un tunnel.

Commenti

Nota WinINet non supporta le implementazioni del server. Inoltre, non deve essere usato da un servizio. Per le implementazioni del server o i servizi, usare i servizi HTTP di Microsoft Windows (WinHTTP).
 

Requisiti

Requisito Valore
Client minimo supportato Windows 2000 Professional [solo app desktop]
Server minimo supportato Windows 2000 Server [solo app desktop]
Intestazione wininet.h

Vedi anche

InternetQueryOption