|
if(gethostname(hostname, 255) == 0) {
|
|
if(gethostname(hostname, 255) == 0) {
|
|
str.length = snprintf(discoveryUrl, 255, "opc.tcp://%s:%d", hostname, port);
|
|
str.length = snprintf(discoveryUrl, 255, "opc.tcp://%s:%d", hostname, port);
|
|
str.length = _snprintf_s(discoveryUrl, 255, _TRUNCATE, "opc.tcp://%s:%d", hostname, port);
|
|
str.length = _snprintf_s(discoveryUrl, 255, _TRUNCATE, "opc.tcp://%s:%d", hostname, port);
|