Questions tagged [poco-libraries]
The Poco C++ Libraries are modern open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems.
738
questions
0
votes
0
answers
52
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 ...
0
votes
1
answer
58
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
34
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 ...
0
votes
0
answers
24
views
Poco XML does not compile with XML_UNICODE_WCHAR_T - How to compile Poco C++ v1.12.4 to support Unicode
Getting compilation errors in Poco XML module (XMLStreamParser.cpp , SAXParser.cpp ) while building with preprocessor definition "XML_UNICODE_WCHAR_T".
With "XML_UNICODE_WCHAR_T" ...
0
votes
0
answers
36
views
POCO c++ sendbyte vs write (TCP/IP)
This is a code to send a random cv::Mat data through tcp/ip using POCO c++ :
try
{
SocketAddress sa("127.0.0.1", 12345); // create a socket address for the server
StreamSocket ss(sa);...
4
votes
1
answer
107
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
60
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
0
answers
22
views
How to build Poco Single Threaded library on Linux
How to build Poco 1.11.7 Single Threaded library on Linux?
I successfully built the Poco single-threaded library for the older version 1.9.4 by editing the build/config/Linux file and removing the ...
0
votes
0
answers
12
views
Is there a way to pass the --disable-stack-for-recursion option for PCRE when building POCO 1.11.7?
Is there a way to pass the --disable-stack-for-recursion option for PCRE when building POCO 1.11.7?
I looked at the POCO source code for PCRE. It is under the Foundation folder. However, I do NOT see ...
0
votes
0
answers
53
views
POCO C++ Libs Scalability
We have an application which is written primarily using poco, it uses web sockets and at the moment we have heard a number of 40/50,000 clients per server range of connected clients, I however now am ...
0
votes
0
answers
51
views
Poco::HTTPClientSession manage disconnections
I have a Poco::HTTPClientSession running on a Windows PC. I send JSON requests and receive responses as expected. The device I communicate with is connected to my PC via a switch (tell you more about ...
0
votes
1
answer
174
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
184
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
195
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
89
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
57
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
631
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
0
answers
31
views
Building for Apple’s Xcode
Need some guidance on nine build issues on Apple’s Xcode. Using Xcode 12.4, no build issues. Upgraded to Xcode 14.2, nine build issues. I believe that all of the issues are related.
Building with Poco ...
0
votes
0
answers
16
views
POCO Library not supporting IP Based Certificate during NISED communication
We are upgrading OS from FBSD-11.2 to FBSD-13.0. For this we had to upgrade POCO library from 1.1.0 to 1.1.2. Post that we are seeing that during Certificate Negotiation with PxGRID server if we ...
0
votes
0
answers
26
views
Issues with obtaining d2cCallback from Poco JSON parser in items array
I have implemented a JSON parser class derived from Poco::JSON::ParseHandler, and I am trying to obtain a d2cCallback for every JSON object in the items array, as well as a nextPageTokenCallback for ...
0
votes
1
answer
216
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
44
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
207
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
440
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
0
answers
132
views
Handling uploaded files with Poco
I have prepared a simple web server application using Poco.
I am currently trying to handle an uploaded file and save its contents to a local file.
Unfortunately, no success so far.
using HTTPStatus = ...
0
votes
0
answers
41
views
POCO - Socket Reactor - Avoid Polling When Client Ab Ends
When a client ab ends the reactor seems to indefinitely go into a polling state resulting in roughly 15% of the processor being used. If the client reconnects I'm still losing that 15%, I'm trying to ...
0
votes
1
answer
176
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
81
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 ...
0
votes
0
answers
94
views
Poco raises exception: Invalid access: Can not convert empty value
By reading the source code, I know this exception is due to an empty Var.
And I found some issue which says this problem can be raised in Apple's chip, which in ARM64. However, this is not my case.
So,...
0
votes
0
answers
70
views
Poco c++ x64 stops after SecureSMTPClientSession.open()
I learn how to use C++ for network stuff, so first thing i tried is to send email with Poco C++ library. I used vcpkg to install poco with openssl, and it compiles fine
I take code like example from ...
1
vote
0
answers
129
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....
0
votes
0
answers
161
views
Unable to receive UDP message packets through receiveFrom API of Poco Library. It doesnt return from the receiveFrom API
Able to send UDP message to a particular IP port using Poco Lib socket communication, But unable to receive the UDP message as it is getting stuck at receiveFrom API of DatagramSocket as in below code....
-3
votes
1
answer
263
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
161
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
92
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
0
answers
235
views
Poco C++: Poco::Crypto::RSAKey class is deprecated. How to encrypt plain text with private key?
For a my personal C++ project, 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.
...
0
votes
1
answer
122
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
136
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
340
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::...
1
vote
1
answer
116
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
90
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
162
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
406
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
461
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
258
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
273
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
106
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
336
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.
...
0
votes
1
answer
345
views
Poco::Net::HTTPRequest is unable to resolve host
I have written a code in poco c++ library that is supposed to send a request to the server to get some data. The is running from inside a docker container. And I am getting a "hostname not ...
1
vote
1
answer
145
views
how to build libfranka on Windows 11
Please advise me on the following issue.
I am trying to build libfranka on Window 11 as explained here: https://frankaemika.github.io/docs/installation_windows.html. I could install eigen3 and poco ...