transport_fns Struct Reference

Plugin definition. More...

#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.


Detailed Description

Plugin definition.

Field Documentation

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.

Note: it is the responsibility of the transport layer to provide buffering.

Parameters:
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
Returns:
the number of written characters, or -1 in case of error.

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.

Parameters:
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
Returns:
the number of read characters, or -1 in case of error.

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.

Parameters:
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.
Returns:
0 on success, -1 on error


The documentation for this struct was generated from the following file:

Generated on Fri Apr 17 15:18:25 2009 for DPWSCore by  doxygen 1.5.8