Search found 19 matches

Go to advanced search

by Royce
19 Aug 2014, 02:24
Forum: General Discussion
Topic: Optimizer/Bad AutoPtr question
Replies: 4
Views: 1188

Re: Optimizer/Bad AutoPtr question

I've done text searches for the word delete and came up empty in any part of the code that deals with these connections. I has to be something more subtle. I remember being surprised by the assignment to a std::auto_ptr over on the TCPServer side, but that doesn't happen in the reactor. I'm just mis...
by Royce
19 Aug 2014, 01:53
Forum: General Discussion
Topic: Optimizer/Bad AutoPtr question
Replies: 4
Views: 1188

Re: Optimizer/Bad AutoPtr question

I wish I could show the code. :cry: Anyway, there are a couple places where I turn the this pointer into a fresh AutoPtr, but I'm careful to pass in the true to get that duplicate call on construction. I'm sure I find a spot where I lose control of the naked pointer or something. I'm just having a d...
by Royce
19 Aug 2014, 00:03
Forum: General Discussion
Topic: Optimizer/Bad AutoPtr question
Replies: 4
Views: 1188

Optimizer/Bad AutoPtr question

Windows, 32bit, VS2010, Static, Release. I have a slightly off standard socket reactor setup that holds AutoPtrs to connection objects in a std::set. It seemed to work alright for a good long while, but then the service started getting a lot of clients that never ever closed their sockets and I star...
by Royce
21 Aug 2013, 20:54
Forum: Support
Topic: a few questions before I design my protocol.
Replies: 2
Views: 1207

Re: a few questions before I design my protocol.

I recently had a problem where it turned out I needed to handle multiple recv()'s for a packet header a lousy four bytes in length. It was a blocking TCP socket. Looking at the wireshark I noticed that I got clumps of packets whose length added up to 8192 bytes. Somebody along the way was rearrangin...
by Royce
27 Feb 2013, 00:40
Forum: Wishlist
Topic: GUI lib (you can do it Poco!!)
Replies: 36
Views: 26582

Re: GUI lib (you can do it Poco!!)

I've found I get along well with QooXDoo.
by Royce
26 Nov 2012, 23:47
Forum: Support
Topic: OpenSSL Lib Naming Scheme
Replies: 13
Views: 4969

Re: OpenSSL Lib Naming Scheme

I haven't worked with Shining Light, but the defaults of the build system for regular OpenSSL on Windows go either pure dynamic or pure static. It doesn't mix. The option is right at the top of nt.mak and ntdll.mak so it'd be easy to experiment with. I use this website to help me understand how to c...
by Royce
13 Nov 2012, 20:30
Forum: Support
Topic: Memory-Leaks / cross-domain security problems
Replies: 5
Views: 1762

Re: Memory-Leaks / cross-domain security problems

I don't know about the leaks but I used a header in my server. Early in the request handler: string cors = Poco::Util::Application::instance().config().getString("CORSHeader"); response.add("Access-Control-Allow-Origin", cors); I set CORSHeader to whatever URL that I expect will ...
by Royce
07 Nov 2012, 20:41
Forum: General Discussion
Topic: SSL sockets
Replies: 15
Views: 7364

Re: SSL sockets

To my knowledge you must have a key. The key is integral to the encryption process. This is how you create a self-signed key: openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem Verification must be set to None for the key to pass muster. I got that from here: http...
by Royce
08 Oct 2012, 01:17
Forum: Support
Topic: SQLite and Ubuntu 11.10 64bit
Replies: 3
Views: 1660

Re: SQLite and Ubuntu 11.10 64bit

I got a face full of this this weekend. Its not Poco or SQLite specific. Apparently something changed in g++ between 11.04 and 11.10. The new behavior is obnoxious. The way you have it, the system will attempt to locate your library files, and complain if it can't find them, but if it can find the l...
by Royce
18 Sep 2012, 22:50
Forum: Support
Topic: Best way to get current IP address
Replies: 2
Views: 1233

Re: Best way to get current IP address

Looks like Poco::Net::NetworkInterface::list() is the guy. For an external IP, I assume you mean the public address of a NAT setup. Since the NAT's IP isn't actually stored on the box running the code you'll have to contact some other box that will report the NAT address back to you. I'm not sure if...

Go to advanced search

cron