Selaa lähdekoodia

Merge pull request #1617 from StalderT/fix16664

change 16664 to 4840
Stefan Profanter 6 vuotta sitten
vanhempi
commit
f762686fc5
3 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 1 1
      examples/server_udp.c
  2. 1 1
      examples/tutorial_client_firststeps.c
  3. 5 5
      include/ua_client.h

+ 1 - 1
examples/server_udp.c

@@ -20,7 +20,7 @@ int main(int argc, char** argv) {
 
     UA_ServerConfig config = UA_ServerConfig_standard;
     UA_ServerNetworkLayer nl;
-    nl = UA_ServerNetworkLayerUDP(UA_ConnectionConfig_standard, 16664);
+    nl = UA_ServerNetworkLayerUDP(UA_ConnectionConfig_standard, 4840);
     config.networkLayers = &nl;
     config.networkLayersSize = 1;
     UA_Server *server = UA_Server_new(config);

+ 1 - 1
examples/tutorial_client_firststeps.c

@@ -59,7 +59,7 @@ int main(void) {
  * ^^^^^^^^^^^^^
  *
  * - Try to connect to some other OPC UA server by changing
- *   ``opc.tcp://localhost:16664`` to an appropriate address (remember that the
+ *   ``opc.tcp://localhost:4840`` to an appropriate address (remember that the
  *   queried node is contained in any OPC UA server).
  *
  * - Try to set the value of the variable node (ns=1,i="the.answer") containing

+ 5 - 5
include/ua_client.h

@@ -128,7 +128,7 @@ UA_Client_delete(UA_Client *client);
 /* Connect to the server
  *
  * @param client to use
- * @param endpointURL to connect (for example "opc.tcp://localhost:16664")
+ * @param endpointURL to connect (for example "opc.tcp://localhost:4840")
  * @return Indicates whether the operation succeeded or returns an error code */
 UA_StatusCode UA_EXPORT
 UA_Client_connect(UA_Client *client, const char *endpointUrl);
@@ -136,7 +136,7 @@ UA_Client_connect(UA_Client *client, const char *endpointUrl);
 /* Connect to the selected server with the given username and password
  *
  * @param client to use
- * @param endpointURL to connect (for example "opc.tcp://localhost:16664")
+ * @param endpointURL to connect (for example "opc.tcp://localhost:4840")
  * @param username
  * @param password
  * @return Indicates whether the operation succeeded or returns an error code */
@@ -164,7 +164,7 @@ UA_Client_manuallyRenewSecureChannel(UA_Client *client);
  *
  * @param client to use. Must be connected to the same endpoint given in
  *        serverUrl or otherwise in disconnected state.
- * @param serverUrl url to connect (for example "opc.tcp://localhost:16664")
+ * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  * @param endpointDescriptionsSize size of the array of endpoint descriptions
  * @param endpointDescriptions array of endpoint descriptions that is allocated
  *        by the function (you need to free manually)
@@ -186,7 +186,7 @@ UA_Client_getEndpoints(UA_Client *client, const char *serverUrl,
  *
  * @param client to use. Must be connected to the same endpoint given in
  *        serverUrl or otherwise in disconnected state.
- * @param serverUrl url to connect (for example "opc.tcp://localhost:16664")
+ * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  * @param serverUrisSize Optional filter for specific server uris
  * @param serverUris Optional filter for specific server uris
  * @param localeIdsSize Optional indication which locale you prefer
@@ -205,7 +205,7 @@ UA_Client_findServers(UA_Client *client, const char *serverUrl,
  *
  * @param client to use. Must be connected to the same endpoint given in
  * serverUrl or otherwise in disconnected state.
- * @param serverUrl url to connect (for example "opc.tcp://localhost:16664")
+ * @param serverUrl url to connect (for example "opc.tcp://localhost:4840")
  * @param startingRecordId optional. Only return the records with an ID higher
  *        or equal the given. Can be used for pagination to only get a subset of
  *        the full list