1
0
mirror of https://github.com/FreeOpcUa/freeopcua synced 2025-10-26 19:56:54 +08:00

Compare commits

...

9 Commits

Author SHA1 Message Date
Dr. Denis
6eac097563
Merge pull request #398 from PhoenixDecim/phoenixdecim/buildfailfix
Phoenixdecim/buildfailfix
2023-05-30 14:50:18 +02:00
Dr. Denis
2825fe650e
Merge pull request #402 from reunanen/minor-windows-fixes
Minor Windows fixes
2023-05-30 14:49:47 +02:00
Dr. Denis
6f2e662484
Merge pull request #404 from penguineer/patch-1
Put a link to OPC-UA in the README
2023-05-30 14:35:28 +02:00
Stefan Haun
dd4e0230b2
Put a link to OPC-UA in the README
The project description and README do not link to any explanation of OPC-UA. Unless you already know it is hard to find out what this actually is.

I have added a link on the acronym to the official description to mitigate this a bit.
2023-05-30 12:12:13 +02:00
Juha Reunanen
6d240335a3 Fix closing sockets on Windows 2023-03-01 15:25:08 +02:00
Juha Reunanen
89cf09977a Fix initializing URIs on Windows 2023-03-01 15:24:56 +02:00
PhoenixDecim
06ebf33fd8
Update debian.soft 2022-12-12 16:42:55 +05:30
PhoenixDecim
44be29cb50
Added algorithm header 2022-12-12 16:34:36 +05:30
PhoenixDecim
3c697b7e40
Added mbedTLS library 2022-12-12 16:33:02 +05:30
5 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@ Open Source C++ OPC-UA Server and Client Library
========
[![Build Status](https://travis-ci.org/FreeOpcUa/freeopcua.svg?branch=master)](https://travis-ci.org/FreeOpcUa/freeopcua)
LGPL OPC-UA server and client library written in C++ and with a lot of code auto-generated from xml specification using python.
LGPL [OPC-UA](https://opcfoundation.org/about/opc-technologies/opc-ua/) server and client library written in C++ and with a lot of code auto-generated from xml specification using python.
Python bindings can be found in the python directory.

View File

@ -4,5 +4,5 @@ libboost-system-dev libboost-filesystem-dev \
libcppunit-dev pkg-config git python-dev libboost-python-dev \
gsoap libxml2-dev build-essential autotools-dev dh-make \
debhelper devscripts fakeroot xutils lintian pbuilder \
reprepro
reprepro libmbedtls-dev

View File

@ -19,7 +19,7 @@
namespace Common
{
void Uri::Initialize(const char * uriString, std::size_t size)
void Uri::Initialize(const std::string &uriString)
{
URL_COMPONENTS url = {0};
url.dwStructSize = sizeof(url);
@ -31,7 +31,7 @@ void Uri::Initialize(const char * uriString, std::size_t size)
// TODO msdn says do not use this function in services and in server patforms. :(
// TODO http://msdn.microsoft.com/en-us/library/windows/desktop/aa384376(v=vs.85).aspx
if (!InternetCrackUrl(uriString, size, options, &url))
if (!InternetCrackUrl(uriString.c_str(), uriString.size(), options, &url))
{
THROW_ERROR1(CannotParseUri, uriString);
}

View File

@ -50,7 +50,11 @@ OpcUa::SocketChannel::~SocketChannel()
void OpcUa::SocketChannel::Stop()
{
#ifdef _WIN32
closesocket(Socket);
#else
close(Socket);
#endif
}
std::size_t OpcUa::SocketChannel::Receive(char * data, std::size_t size)

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <stdexcept>
#include <algorithm>
namespace
{