Explorar o código

revert changing the standard port

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
ba3dd74f83
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      examples/client.c
  2. 1 1
      examples/server.c

+ 1 - 1
examples/client.c

@@ -22,7 +22,7 @@ void handler_TheAnswerChanged(UA_UInt32 handle, UA_DataValue *value) {
 int main(int argc, char *argv[]) {
     UA_Client *client = UA_Client_new(UA_ClientConfig_standard, Logger_Stdout);
     UA_StatusCode retval = UA_Client_connect(client, ClientNetworkLayerTCP_connect,
-                                             "opc.tcp://virtualbox:16663");
+                                             "opc.tcp://localhost:16664");
 
     if(retval != UA_STATUSCODE_GOOD) {
         UA_Client_delete(client);

+ 1 - 1
examples/server.c

@@ -223,7 +223,7 @@ int main(int argc, char** argv) {
     UA_ByteString certificate = loadCertificate();
     UA_Server_setServerCertificate(server, certificate);
     UA_ByteString_deleteMembers(&certificate);
-    UA_Server_addNetworkLayer(server, ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, 16663));
+    UA_Server_addNetworkLayer(server, ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, 16664));
 
     // add node with the datetime data source
     UA_DataSource dateDataSource = (UA_DataSource) {.handle = NULL, .read = readTimeData, .write = NULL};