735 questions
1
vote
0
answers
109
views
Poco NetSSL_Win + TLS 1.3 Error SSL Exception: Failed to acquire Schannel credentials
I am using the code below and encountering the following error:
“Server error: SSL Exception: Failed to acquire Schannel credentials: The client and server cannot communicate because they do not ...
1
vote
1
answer
83
views
Memory leak in Poco::Net::POP3ClientSession when server is unreachable
I’ve written a class designed to poll an email server. Everything works fine when the server is reachable. However, the problem arises when the server is unreachable. In that case, Valgrind reports ...
1
vote
0
answers
53
views
Poco Net ConnectionRefusedException when connecting a StreamSocket on a TCP port different from 80 [duplicate]
I wrote a TCP client for sending and receiving data to/from others, using Poco C++ library on Debian 12, like this code:
int main(int argc, char** argv)
{
Poco::Net::StreamSocket sock;
sock....
-8
votes
1
answer
113
views
Unable to retrieve 2 million rows from SQL Server using C++ poco library
I'm trying to retrieve 2 million rows of data from SQL Server using poco library
The code I'm using:
Poco::Data::ODBC::Connector::registerConnector();
Poco::Data::Session session("ODBC", &...
0
votes
0
answers
86
views
Why is TeraTerm sending incorrect binary data over serial? [duplicate]
I have a VMWare Windows 10 VM set up, using a named pipe for serial data. I am then using TeraTerm to connect to that pipe.
I have a simple application that sends and receives serial data every couple ...
0
votes
1
answer
73
views
POCO::Logger writing a comment in the first line of log file
I am using C++-based Docker container and implemented POCO::Logger for logging. And, the logs files are being rotated in every 5 minutes. The POCO::Logger is adding a comment in the first line. I don'...
0
votes
1
answer
33
views
POCO and Kerberos authentication
I am using POCO to send http requests to a server with HTTPClientSession class. Requests must go through a proxy (ok with HTTPClientSession->setProxyConfig). When the proxy requires NTLM ...
-1
votes
1
answer
119
views
How do I use MariaDB with POCO (https://pocoproject.org/), using C++ on Windows. Like how do I link in the MariaDB libraries etc. in CMake
this is the first time I've tried to link MariaDB to a C++ program in CMake
MariaDB MySQL version: 10.5.21 (what server uses)
The CMakeLists.txt that I have currently, that doesn't work looks like ...
0
votes
0
answers
236
views
POCO 1.13.3 has 160 unresolved external symbols when statically linking to OpenSSL 3.4.0
I'm relatively new to C++, so I may be missing some key factors regarding the use of linking, especially on such a complex project.
I can build OpenSSL 3.4.0 fine, as we want a statically linked lib ...
0
votes
1
answer
164
views
read() on Poco::Zip::ZipInputStream
I try to read a binary file which is part of a zip archive. Therefore I opened the zip archive with Poco::Zip. Then I read the binary file chunkwise
struct Header
{
uint64_t tag;
uint32_t ...
1
vote
0
answers
112
views
poco SecureStreamSocket receiveBytes() stops prematurly when sending large chunks of data in non-blocking mode
I have a working code sample that sends data between a server and client app using a SecureStreamSocket. I am using NetSSL_WIN (schannel), and sending small (1024 bytes) and large chunks (>1MB) of ...
2
votes
0
answers
56
views
POCO .h and .cpp file paths are included in stripped release executable, is it possible to prevent this?
I am building a fairly simple C++ program that depends upon the POCO library, statically linked, and my release build contains file path strings to all of the POCO headers and .cpp files that are used ...
0
votes
1
answer
527
views
How to add c++ poco library using conan and cmake?
I'm a newbie with conan and i want to add poco library to my project using cmake.
I installed poco 1.13.0 using:
$ conan install . --output-folder=build --build=missing.
Then i used new toolchain with:...
0
votes
1
answer
100
views
Error Compile poco-lib 1.12.5 with make and arm cross-compiler arm-linux-g++
I cant compile poco-lib for my embedded device with arm-linux-g++ compiler.
i assume that the cross compiler only supports cxx11, but poco has to be compiled with cxx17 ?
i tryed with a older version. ...
0
votes
1
answer
98
views
Poco HTTPRequestHandler handleRequest aborting after multiple requests
I based my server off the HTTPTimeServer. The minute I try to log in the handleRequest I can't send the server multiple requests. The second one aborts the server. I thought it was a multi-...
1
vote
1
answer
172
views
Error when using #include "Poco/Base64Encoder.h" in C++
I want to use base64 in the poco library to encode content in the file. The error I have encountering, LNK2019, indicates that the linker is unable to find the implementation of the Poco::...
1
vote
0
answers
443
views
Poco linking error when using Poco::NetSSL
First of all, I am quite inexperienced when it comes to cmake, as I have only very recently started using it. I wanted to use POCO simply to send a message to a given email address. The code is ...
1
vote
1
answer
252
views
Poco Library, both HTTP and HTTPS server
I was wondering if is it possible to have server that is able to answer to both http and https requests using Poco Library. Probably one option would be to run 2 servers binding different port, is ...
0
votes
1
answer
321
views
Problems with installing Poco through Conan/Cmake
I am trying to install Poco with the help of Conan and Cmake. According to Conan it seems to be able to download Poco, but the setup of the libraries seems to be missing. The final steps gives me ...
4
votes
1
answer
632
views
C++ POCO - How to start a thread from the thread-pool while within a thread
I am using POCO default thread pool to start a event receiver thread which would listen for events. Once the event is received I need to process that event in a separate thread.
Here is what I am ...
1
vote
0
answers
248
views
Certificate validation for C++ Poco API
I created an API in C++ using Poco Libraries.
I also have a http request client that can perform requests on the server API.
Both the API and the client are standalone programs running on the same ...
0
votes
1
answer
457
views
How to disable openssl legacy provider use within poco
The project I am working on doesn't have the legacy provider assemblies for openssl 3.1.X, and I am trying to find the best way to work around this.
Is there a way to disable the check within ...
0
votes
1
answer
664
views
Creating CMakeList.Txt for Poco in VS Code
I am trying to configure a CMakeLists.txt to include any external libraries. I have VSCode in Windows 10 compiling using g++. The compiler works. I have installed Poco (and others) using vcpkg to /src/...
2
votes
1
answer
1k
views
Need help decrypting with OpenSSL 3.0.8 Libraries
I'm trying to write a service to decrypt a large number of openssl-encrypted content. It works great with a simple command line program, but when I use the same code in a Poco (multi-threaded) server,...
0
votes
1
answer
232
views
Is there a recommend way to get data back from a C++ POCO Task, data allocated to a private std::vector member is deleted
I would like to get data out of a C++ POCO Library Task class, however after the runTask() function finishes any dynamic memory variables are disposed of seemingly. In the following example _series ...
1
vote
0
answers
80
views
Using a class only with its header file in C++ in a plugins-load structure
These are some definitions and I want to implement a plugin structure.
A demo plugin-class:
// democlass.h
#include "DemoClass.h"
#include "include/plugins/v1/BaseClass.h"
#include ...
1
vote
1
answer
2k
views
CMake can not find POCO when installed with Conan
I downloaded the last version of Conan from here and then I've done the following.
Creating a new c++ project with the following code
main.cpp
#include "Poco/MD5Engine.h"
#include "...
0
votes
1
answer
581
views
PocoCryptod.lib & PocoNetSSLd.lib libraries not built during cmake
I am trying to install POCO so I can run api requests. 2 libraries are never installed when I follow the directions on the poco site. These libraries are:
PocoCryptod.lib
PocoNetSSLd.lib
When I run
...
0
votes
1
answer
120
views
Is it possible to set channel specific priorities for Poco logger?
In my application I am setting up a logger from a config file similar to how Poco Get Logger Channel from SplitterChannel is setting the logger up however I want to modify my configuration so that the ...
-1
votes
1
answer
466
views
libssl.so needed by target, missing and no known rule to make it
I am trying to make a Yocto recipe for an application (application_1.0.0.bb). Here is a (simplified) CMake for that application:
cmake_minimum_required(VERSION 3.14)
project(
server
VERSION 0....
0
votes
1
answer
1k
views
Install an executable created by another recipe in Yocto
On Yocto, I have a recipe (application_1.0.0.bb) with a dependency to Poco package (poco_1.11.2.bb):
DEPENDS = "poco"
In the configure step of application_1.0.0.bb, I need to use arc.
This ...
0
votes
1
answer
382
views
How to detect when stream has been closed in POCO HTTPRequestHandler?
In my application I want to stream jpg images through a HTTP web server using the POCO library, and for this I am using multipart/x-mixed-replace content type in my response body. This means when a ...
-1
votes
1
answer
128
views
How to fix not working vcpkg in Kali Linux
I have downloaded Poco using vcpkg. But It did'nt work in vscode. I have also installed integrate. I have done evrything what vcpkg offical site asked. I even added directory to Path, but none of them ...
1
vote
0
answers
308
views
Poco C++ Net Post Request is handled twice
I have a strange issue when sending a Post Request to the Poco HTTP Server.
This is my example Code:
#include <iostream>
#include <Poco/Util/ServerApplication.h>
#include <Poco/Runnable....
-3
votes
1
answer
495
views
Upload file to Google Drive folder is failing
I am developing a function "uploading file to Google Drive folder" using c++ / Poco library.
File is always getting uploaded to root folder only
I have added optional parameter parents as ...
1
vote
0
answers
230
views
Poco failing to send mail
I have installed the Poco C++ library (Release 1.12.4) with vcpkg on my computer and I'm trying to send a simple Mail by using the sample delivered on the Github Page.`The script is compile with ...
0
votes
1
answer
154
views
How to measure the time elapsed since the last message received from a datagram socket in Poco C++?
My code monitors a datagram socket (implemented in the Poco framework), and I'd like to get notified if there were no messages received after a certain time. I have an infinite loop to monitor the ...
0
votes
1
answer
653
views
Poco::Crypto::RSAKey class is deprecated. How to encrypt plain text with private key?
I'd like been able to encrypt plain text data using private key. In my project I make an extensive usage of Poco C++ library, and I'd like handle such feature with it.
I am successfully handling a ...
0
votes
1
answer
205
views
Returning a Poco session without creating new connection
Depending on if a condition is met I want to return a session but don't want to create a new connection.
Poco::Data::Session initialise(){
if(some condition){
Poco::Data::Session temp1('odbc',...
0
votes
1
answer
254
views
Poco::Net::FTPClientSession uploading blank, 0-byte copy of the actual target file
I am currently writing a class which handles a variety of FTP requests and I'm using Poco's FTPClientSession class. I've managed to get most of the stuff I needed to work, however I'm facing an issue ...
1
vote
1
answer
615
views
POCO HTTP Server: Request with Transfer-Encoding: chunked not complete
I have a HTTP server application written with the POCO libraries that needs to receive some chunked reqest data. My handler looks like this:
void generic_post_method_handler(Poco::Net::...
2
votes
1
answer
209
views
How to save the whole raw email on the file system?
I should save the entire structure of the emails that arrive at a mail server.
Using the "poco ++" libraries I was unable to save the email entirely in the file system. For the moment inside ...
0
votes
1
answer
132
views
How to signal a class that some HTTPServer request was received?
I want to extend an existing application with a simple REST server and a dedicated UDP client for streaming data to a UDP server.
The REST server should manage the UDP client based on the API requests
...
0
votes
0
answers
177
views
fatal error C1001: TwoPhase Lookup failed on Template Function
I use the current Release of the Poco Library (1.12.0)
With that release i was unable to build the following Program with Visual Studio 2019 and 2022 (Platformtoolset vs142 and vs143):
#include <...
0
votes
1
answer
716
views
How to improve the performance of HTTP server based on POCO C++ library
I have a hardware based on ARM processor with QNX RTOS, on which I need to stream http data between two applications http_client and http_server, both based on POCO C++ library. I have create simple ...
0
votes
1
answer
690
views
Poco Library, send get request without body
I'm learning c++ and I want to create an http request to get just the server time without authentication, nothing more. The problem is I can't get to receive a succesfull response and also I don't ...
0
votes
0
answers
371
views
Poco client sending image using C++
#include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Path.h>
#include <Poco/URI.h>
#include <...
0
votes
1
answer
349
views
Poco::Data::MySQL 'Got packets out of order' error
I got an ER_NET_PACKETS_OUT_OF_ORDER error when running a multithreaded C++ app using Poco::Data::MySQL and Poco::Data::SessionPool. The error message looks like this:
MySQL: [MySQL]: [Comment]: ...
0
votes
1
answer
168
views
POCO did not rotate on specified time
The program can't rotate the program log using the "rotate" property and "00:00" as the value. Run the program one day and the next day without the result of the rotation. I have ...
1
vote
0
answers
526
views
Enable Cross-Origin Requests (CORS) in POCO C++ Libraries
I'm building a C++ backend with heavy calculations that are meant to work as an JSON API for connecting clients. To accomplish this, I've used HTTPServer in Poco::Net from POCO C++ Libraries.
...