#include <dc_DpwsRequest.h>
Data Fields | |
int(* | fsend )(struct dpws *dpws, void *transport_data, const char *buf, size_t buflen) |
Callback function used by the SOAP engine to write outgoing response data. | |
int(* | frecv )(struct dpws *dpws, void *transport_data, char *buf, size_t buflen) |
Callback function used by the SOAP engine to read incoming request data. | |
int(* | fresponse )(struct dpws *dpws, void *transport_data, int status, media_type_t *mtype, size_t len) |
Callback function used by the SOAP engine to notify the transport layer that it is starting the response. |
Callback function used by the SOAP engine to write outgoing response data.
Note: it is the responsibility of the transport layer to provide buffering.
dpws | the dpws struct associated to the current request | |
transport_data | the opaque transport-specific parameter associated to the request | |
buf | a pointer to the beginning of the buffer to be written | |
buflen | the number of characters to be written |
Callback function used by the SOAP engine to read incoming request data.
dpws | the dpws struct associated to the current request | |
transport_data | the opaque transport-specific parameter associated to the request | |
buf | a pointer to the beginning of the buffer where read data can be stored | |
buflen | the size of the buffer |
int(* fresponse)(struct dpws *dpws, void *transport_data, int status, media_type_t *mtype, size_t len) |
Callback function used by the SOAP engine to notify the transport layer that it is starting the response.
dpws | the dpws struct associated to the current request | |
transport_data | the opaque transport-specific parameter associated to the request | |
status | a parameter that can take four values: DC_SOAP_RESPONSE, DC_SOAP_EMPTY_RESPONSE, DC_SOAP_SENDER_FAULT, DC_SOAP_RECEIVER_FAULT. | |
mtype | the content type of the response. | |
len | the length of the response contents if known, otherwise 0. |