Browse Source

mockup client functionality

Julius Pfrommer 10 years ago
parent
commit
7c22236ed9
2 changed files with 9 additions and 1 deletions
  1. 6 1
      include/ua_client.h
  2. 3 0
      src/client/ua_client.c

+ 6 - 1
include/ua_client.h

@@ -18,7 +18,12 @@ struct UA_Client;
 typedef struct UA_Client UA_Client;
 
 UA_Client UA_EXPORT * UA_Client_new(void);
-UA_Client UA_EXPORT * setUserDataPtr(UA_Client *c, void *userData);
+
 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);

+ 3 - 0
src/client/ua_client.c

@@ -25,6 +25,9 @@ UA_Client * UA_Client_new(void) {
 
 static UA_StatusCode HelAckHandshake(UA_Client *c);
 static UA_StatusCode SecureChannelHandshake(UA_Client *c);
+static UA_StatusCode SessionHandshake(UA_Client *c);
+static UA_StatusCode CloseSession(UA_Client *c);
+static UA_StatusCode CloseSecureChannel(UA_Client *c);
 
 UA_StatusCode UA_Client_connect(UA_Client *c, UA_ConnectionConfig conf, UA_ClientNetworkLayer networkLayer,
                                 char *endpointUrl) {