12345678910111213141516171819202122232425262728293031 |
- #include "ua_util.h"
- #include "ua_types.h"
- #include "ua_connection.h"
- #include "ua_types_generated.h"
- /**
- * The client networklayer can handle only a single connection. The networklayer
- * is only concerned with getting messages to the client and receiving them.
- */
- typedef struct {
- UA_StatusCode (*connect)(const UA_String endpointUrl, void **resultHandle)
- void (*disconnect)(void *handle)
- UA_StatusCode (*send)(void *handle, UA_ByteStringArray gather_buf)
- // the response buffer exists on the heap. the size shall correspond the the connection settings
- UA_StatusCode (*awaitResponse)(void *handle, UA_ByteString *response, UA_UInt32 timeout)
- } UA_ClientNetworkLayer
- struct UA_Client
- typedef struct UA_Client UA_Client
- UA_Client UA_EXPORT * UA_Client_new(void)
- UA_StatusCode UA_EXPORT UA_Client_connect(UA_Client *c, UA_ConnectionConfig conf,
- UA_ClientNetworkLayer networkLayer, char *endpointUrl)
- UA_StatusCode UA_EXPORT UA_Client_disconnect(UA_Client *c)
- UA_ReadResponse UA_EXPORT UA_Client_read(UA_Client *c, const UA_ReadRequest *request)
- UA_WriteResponse UA_EXPORT UA_Client_write(UA_Client *c, const UA_WriteRequest *request)
- UA_BrowseResponse UA_EXPORT UA_Client_browse(UA_Client *c, const UA_BrowseRequest *request)
|