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.

poco-libraries
253 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
132 views

Is read after EOF UB?

I try to combine Poco and boost::iostreams::filtering_stream and I found two problems: Poco::Net::HTTPChunkedStreamBuf::underflow returns EOF only once after session was closed. boost::iostreams::...
dahek's user avatar
  • 41
4 votes
2 answers
2k views

Poco library 1.4.6 Xcode 5 build for iPhone Simulator

I was using Poco library 1.4.5-all, and recently I upgraded my Xcode to 5.0.1. Somehow I had problem linking Poco libraries for iPhone device build so I managed to link properly for iPhone device by ...
Locke's user avatar
  • 315
4 votes
2 answers
2k views

Embed POCO static library into another one

I'm developing an SDK (as dynamic and static lib) using Poco, and I would like to embed the Poco static libs into my one to avoid the end user to setup and link the Poco enviroment. The C/C++ settings ...
Barzo's user avatar
  • 1,039
3 votes
0 answers
230 views

How do I get POCO SecureSMTPClientSession class to work, using NetSSL_Win module?

I have built Poco 1.11 and am unable to get secure SMTP connections, or HTTPS connections in general, to work, with the NetSSL_Win module (i.e. using Windows Schannel rather than OpenSSL). There is a ...
cloudplay's user avatar
3 votes
0 answers
4k views

SSL Exception: error:1409E10F:SSL routines:ssl3_write_bytes:bad length

I'm using the Poco libraries to write a networked application, specifically built around Poco::Net::SecureStreamSocket. Some users have lately begun reporting that they're seeing the following error: ...
Nathan's user avatar
  • 1,248
3 votes
1 answer
876 views

How can write XML with POCO library in ROS environment

I want to create C++ program which read and write xml using POCO library. So, I write simple program. I could read each xml elements. But I could't write new xml elements. Below is test.xml. <...
thegoldenmeans0's user avatar
3 votes
0 answers
430 views

how to check if the client has closed the connection in websocket POCO C++

The requirement i have is i do not want to send close frame to client if the websocket is already closed by client. So i want to know if the websocket is still alive. How to? No API's on POCO using 1....
sach's user avatar
  • 109
3 votes
1 answer
877 views

C++ POCO build error

I am trying to use the POCO C++ library in my existing Windows CE project on Visual Studio 2008. I have compiled the POCO library using the provided .bat files. I used the one nammed build_CE_vs90....
Virus721's user avatar
  • 8,219
3 votes
1 answer
1k views

POCO HTTPS Request Verify Server Certificate

I am using POCO HTTPSClientSession for executing a HTTPS POST request. I want to compute SHA1 of the server certificate before transmitting any data. How can this be achieved? This is sample of ...
ZestyZest's user avatar
  • 931
2 votes
0 answers
193 views

poco Socket::select() APi not waiting for a file descriptor to become ready for gievn Poco::Timespan

I am using POCO library for socket connection. I Notice poco select API doesn't wait till the poco::timespan. ReadData() { SocketList read; SocketList write; Socket::select(read, write, ...
Deny 's user avatar
  • 23
2 votes
2 answers
2k views

Cmake undefined references when using the external library Poco (installed via vcpkg) in Visual Studio Code

I'm currently trying to develop a C++ cross-platform project in VSCode which should include the Poco library which I downloaded using vcpkg. I then followed this tutorial: https://www.codeproject.com/...
slack off's user avatar
2 votes
0 answers
830 views

The Poco.Crypto library is not linked to libssl.so when building Poco. Why?

I'm using Poco libraries on Ubuntu 16.04.6 (kernel 4.19.37) with gcc/g++ v7.4.0. I have an issue with building Poco 1.9.* package: the Crypto library is not linked to libssl.so after build. What I do:...
Andrey Gorky's user avatar
2 votes
0 answers
2k views

Why does Firefox say it "can’t establish a connection to the server at ws://localhost:3000/" after successful return upgrade request?

I wrote a program in c++ to upgrade an HTTP session to a WebSocket. The server correctly receives the upgrade request, and responds with 101 switching protocols. Firefox receives the 101 response, but ...
Joseph Summerhays's user avatar
2 votes
0 answers
151 views

stack smashing when using Poco::JSON::Object in dynamic library

I'm trying to build a dynamic library in which I used Poco::JSON library. // header file #ifndef __MATH_H__ #define __MATH_H__ #include <cstdlib> class math { public: static math* ...
Toe's user avatar
  • 21
2 votes
1 answer
2k views

C++ Poco - How to send a notification/message to a specific thread?

I have this code below. I have two different threads: Foo and Bar. On the main() I want to send a message to the Foo thread. For this, I'm using the NotificationQueue from POCO libraries. #include &...
waas1919's user avatar
  • 2,505
2 votes
1 answer
7k views

Poco websocket server example

I want to create an application that consists of a web based front-end and a c++ back-end. My choice is to use websocket protocol in order to achieve data transfer between them.Specifically the front ...
dk_1979's user avatar
  • 31
2 votes
1 answer
126 views

Restart c++ console application using batch doesn't close network connections

I need to restart my application via code and I choose to use a batch file. When the application starts it creates a batch like this: taskkill /f /im AudioService.exe TIMEOUT 10 start "AudioService" "...
Barzo's user avatar
  • 1,039
2 votes
0 answers
110 views

Can I directly write in a socket in POCO Reactive Server instead of using WritableNotification?

I've implemented a reactive tcp server using POCO SocketReactor. Why should I write data in a socket only on WritableNotification? Can I directly write data in a socket without adding a ...
w00drow's user avatar
  • 468
2 votes
1 answer
1k views

integrate POCO library in android ndk

i am trying to develop cross platform app ( on native level ) that uses POCO socket library with android NDK. but i dont know how to integrate/use POCO library in android NDK using gradle in studio. ...
Hunt's user avatar
  • 8,305
2 votes
1 answer
657 views

XCode unable to compile Poco project, undefined symbols

I've been looking for a proper HTTP parser in C++ and today I found that Poco has support for both parsing HTTP requests, setting up a server and also setting up a HTTPS server along with other cool ...
MegaMiley's user avatar
  • 487
2 votes
0 answers
928 views

no member named 'snprintf' in the global namespace

I'm trying to build Poco (as part of superbuild) on FreeBSD but getting (building with -std=c++11) [ 0%] Building CXX object Foundation/CMakeFiles/Foundation.dir/src/AbstractObserver.cpp.o In file ...
cnd's user avatar
  • 33.1k
2 votes
0 answers
2k views

Poco C++ Static Library (Crypto and SSL) Linker Error on OS-X

I have compiled Poco as static library to be used in an XCode6.1.1 Project. However I see linking error for libraries: libPocoCrypto.a and libPocoNetSSL.a: I have already verified that these ...
ZestyZest's user avatar
  • 931
2 votes
1 answer
2k views

Can't connect to local server on Windows

I have a weird problem with my server application written in C++ using POCO libraries. It worked fine and just stopped working few days ago. Even using the exe from 2 weeks ago it doesn't work. The ...
Woland's user avatar
  • 21
2 votes
0 answers
679 views

Duplicate events received from POCO DirectoryWatcher

I'm trying to use the DirectoryWatcher class from POCO's file system library to monitor a specific folder for changes. The code is pretty simple and looks like this: Monitor::Monitor() { pattern =...
fabiomargarido's user avatar
2 votes
0 answers
820 views

TCPServer stops to accept connections

I'm working on a TCP server using poco-1.5.2-all. It has to handle equipments which: opens a connection; sends data; closes the connection But I have noted that, after some time, it doesn't ...
Barzo's user avatar
  • 1,039
2 votes
0 answers
393 views

Poco library for c++, declare namespace for custom element

I want to create an XML document by building a DOM document from scratch, with syntax like: AutoPtr<Document> doc = new Document; AutoPtr<Element> root = doc->createElement("root"); ...
Mikhail's user avatar
  • 4,311
2 votes
0 answers
392 views

Using the Poco C++ Library, how can I force POST to use SSL v3?

I am trying to connect with SSL using the C++ Poco library. My program is able to do a POST correctly on a Debian 32 bit but it hangs when I use a 64 bit machine. I have also tried on Windows and ...
Adrián Tung's user avatar
2 votes
1 answer
2k views

SSL Exception in POCO C++

When I completed the building POCO library using Win32OpenSSL-1_0_1c.exe poco-1.4.3p1-all I felt happy first because I could use HTTPS to write my program.However,I encountered a exception msg = "...
mac.ma's user avatar
  • 703
2 votes
1 answer
512 views

setters and threads

I have an issue with threads in C++. I have 2 threads running: one running a client and one functioning as a listener. The listener thread calls a shutdown() method, which only does the following: ...
Matan's user avatar
  • 581
2 votes
1 answer
1k views

Poco SocketReactor Scalability

I have written a proxy server for Linux using Poco but have since been reading up on the various approaches to achieving TCP/IP server scalability. I will need the server to handle persistent ...
Genesis's user avatar
  • 8,078
1 vote
1 answer
84 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::...
GiaPhuc's user avatar
  • 11
1 vote
0 answers
171 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 ...
Karma's user avatar
  • 11
1 vote
0 answers
108 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 ...
MrJay's user avatar
  • 11
1 vote
0 answers
64 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 ...
DamXosp4j's user avatar
1 vote
0 answers
144 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....
Kevin's user avatar
  • 825
1 vote
0 answers
187 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 ...
Omikrone's user avatar
1 vote
0 answers
388 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. ...
unknown83's user avatar
1 vote
1 answer
157 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 ...
ANA's user avatar
  • 11
1 vote
1 answer
572 views

Poco::Dynamic::Var created empty object by operator []

I try to check the parameter is existing in Poco::Dynamic::Var. But after checking I found that source object is changed. Appeared a new parameter, which I checked. Problem: How to check the presence ...
Валентин Никин's user avatar
1 vote
0 answers
312 views

Poco C++ libraries send an asynchronous server reply

Are there any users of the Poco C++ libraries who know of a way to send an asynchronous reply to a server request? Consider the code: void handler::handleRequest(HTTPServerRequest &request, ...
user3472's user avatar
  • 179
1 vote
0 answers
126 views

How to reuse Poco::Net::HTTPRequestHandler?

How could we reuse Poco::Net::HTTPRequestHandler to avoid it's new/delete for each request?
Victor's user avatar
  • 181
1 vote
1 answer
802 views

Secure Socket with Poco

I am implementing a tcp server and client using secure sockets (Poco::Net::SecureServerSocket), I attach here the code I am using: void serverClientTest() { try { Poco::Net::initializeSSL()...
gizo's user avatar
  • 11
1 vote
1 answer
83 views

Poco::DirectoryWatcher does not handle network connection lost

Using Poco 1.10.1 for Windows, I tried the following code: try { Poco::DirectoryWatcher dw( "\\test"); getch(); } catch( const Poco::Exception& e) { std::cerr << e....
affenärschle's user avatar
1 vote
1 answer
234 views

POCO::PostgreSQL: How to add std::vector support to `Binder::bind`?

I want to put the struct like struct Person{ int age; std::string name; std::vector<std::string> links; }; into a psql table: CREATE TABLE persons ( age integer, name ...
Start Up's user avatar
1 vote
0 answers
445 views

How to bind return values from stored procedures with Poco?

Original objective I need to call stored procedures in SQL Server and have a way to determine the status code in the procedures from my calling C++ code to know if they succeeded or not. I do this ...
Martin Arvidssson's user avatar
1 vote
0 answers
357 views

Transition a Poco StreamSocket to a SecureStreamSocket

I'm modifying an application embedded FTP server I have previously written for a customer to support FTPS and while I have implicit mode working by passing a SecureServerSocket to the TCPSocketServer, ...
Mikaelo's user avatar
  • 11
1 vote
0 answers
818 views

Converting strings to std::__ndk1 instead of std::__1 which compiling POCO with NDK r20b

I'm compiling poco for android with NDK-r20b where the strings are converting to std::__ndk1 intead of std::__1. My android build aws server requires it to be built with std::__1. Is there any way if ...
Baladev's user avatar
  • 11
1 vote
0 answers
432 views

SSL Exception: Cannot create SSL_CTX object in POCO HTTPS client

I am using the POCO C++ libraries to create a HTTPS client for connecting to a SOAP service. Following is the code std::unique_ptr<Poco::Net::HTTPClientSession> session; Poco::Net::Context::...
shery6405's user avatar
  • 125
1 vote
0 answers
920 views

Decompress .zip file using Poco/Zip Library

After compress successfully(using Poco lib), I found that I can able to decompress a .zip file which contains files but not sub-folder My decompress block of code : struct UnzipStruct unzipObject; ...
Tam Nguyen's user avatar
  • 1,107
1 vote
1 answer
392 views

Add new Directory with Poco::zip always give Exception

I'm building a Compress/Decompress functions and currently, I only able to compress 1 single file into a zip file. Each time I add a new Directory or add Recursively a Directory it always give me ...
Tam Nguyen's user avatar
  • 1,107

1
2 3 4 5 6