structure WS_CUSTOM_CHANNEL_CALLBACKS (webservices.h)
Structure utilisée pour spécifier un ensemble de rappels qui forment l’implémentation d’un canal personnalisé.
Syntaxe
typedef struct _WS_CUSTOM_CHANNEL_CALLBACKS {
WS_CREATE_CHANNEL_CALLBACK createChannelCallback;
WS_FREE_CHANNEL_CALLBACK freeChannelCallback;
WS_RESET_CHANNEL_CALLBACK resetChannelCallback;
WS_OPEN_CHANNEL_CALLBACK openChannelCallback;
WS_CLOSE_CHANNEL_CALLBACK closeChannelCallback;
WS_ABORT_CHANNEL_CALLBACK abortChannelCallback;
WS_GET_CHANNEL_PROPERTY_CALLBACK getChannelPropertyCallback;
WS_SET_CHANNEL_PROPERTY_CALLBACK setChannelPropertyCallback;
WS_WRITE_MESSAGE_START_CALLBACK writeMessageStartCallback;
WS_WRITE_MESSAGE_END_CALLBACK writeMessageEndCallback;
WS_READ_MESSAGE_START_CALLBACK readMessageStartCallback;
WS_READ_MESSAGE_END_CALLBACK readMessageEndCallback;
WS_ABANDON_MESSAGE_CALLBACK abandonMessageCallback;
WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK shutdownSessionChannelCallback;
} WS_CUSTOM_CHANNEL_CALLBACKS;
Membres
createChannelCallback
Rappel qui implémente WsCreateChannel. Pour plus d’informations, consultez WS_CREATE_CHANNEL_CALLBACK .
freeChannelCallback
Rappel qui implémente WsFreeChannel. Pour plus d’informations , consultez WS_FREE_CHANNEL_CALLBACK .
resetChannelCallback
Rappel qui implémente WsResetChannel. Pour plus d’informations, consultez WS_RESET_CHANNEL_CALLBACK .
openChannelCallback
Rappel qui implémente WsOpenChannel. Pour plus d’informations, consultez WS_OPEN_CHANNEL_CALLBACK .
closeChannelCallback
Rappel qui implémente WsCloseChannel. Pour plus d’informations, consultez WS_CLOSE_CHANNEL_CALLBACK .
abortChannelCallback
Rappel qui implémente WsAbortChannel. Pour plus d’informations, consultez WS_ABORT_CHANNEL_CALLBACK .
getChannelPropertyCallback
Rappel qui implémente WsGetChannelProperty. Pour plus d’informations, consultez WS_GET_CHANNEL_PROPERTY_CALLBACK .
setChannelPropertyCallback
Rappel qui implémente WsSetChannelProperty. Pour plus d’informations, consultez WS_SET_CHANNEL_PROPERTY_CALLBACK .
writeMessageStartCallback
Rappel qui implémente WsWriteMessageStart. Pour plus d’informations, consultez WS_WRITE_MESSAGE_START_CALLBACK .
writeMessageEndCallback
Rappel qui implémente WsWriteMessageEnd. Pour plus d’informations , consultez WS_WRITE_MESSAGE_END_CALLBACK .
readMessageStartCallback
Rappel qui implémente WsReadMessageStart. Pour plus d’informations, consultez WS_READ_MESSAGE_START_CALLBACK .
readMessageEndCallback
Rappel qui implémente WsReadMessageEnd. Pour plus d’informations, consultez WS_READ_MESSAGE_END_CALLBACK .
abandonMessageCallback
Rappel qui implémente WsAbandonMessage. Pour plus d’informations, consultez WS_ABANDON_MESSAGE_CALLBACK .
shutdownSessionChannelCallback
Rappel qui implémente WsShutdownSessionChannel. Pour plus d’informations, consultez WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK .
Remarques
Cette structure est spécifiée lorsqu’un canal est créé à l’aide de WsCreateChannel ou WsCreateChannelForListener à l’aidede WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_CALLBACKS.
Sauf indication contraire, chaque rappel est responsable de la validation de tous les paramètres et du fait que l’opération demandée est acceptable compte tenu de la WS_CHANNEL_STATE actuelle.
Configuration requise
Client minimal pris en charge | Windows 7 [applications de bureau uniquement] |
Serveur minimal pris en charge | Windows Server 2008 R2 [applications de bureau uniquement] |
En-tête | webservices.h |
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour