Search found 46 matches

Go to advanced search

by cdelmas
25 Mar 2008, 10:43
Forum: Support
Topic: FTP : REST / resume an aborted transfer
Replies: 1
Views: 2173

Re: FTP : REST / resume an aborted transfer

This is the code I wrote : // h std::ostream& beginUpload(const std::string& path, const std::string& command = "STOR"); // cpp std::ostream& FTPClientSession::beginUpload(const std::string& path, const std::string& command) { delete _pDataStream; _pDataStream = 0; _pDataStream = new SocketStream(es...
by cdelmas
21 Mar 2008, 11:53
Forum: Support
Topic: FTP : REST / resume an aborted transfer
Replies: 1
Views: 2173

FTP : REST / resume an aborted transfer

Hello, I would like to know how can I resume an aborted transfer (for instance, because the network comes down) using Poco FTP. I have two solutions : use the command REST, along with the SIZE command or use APPE (append) to continue the transfer. I think it should be possible to parameter beginUplo...
by cdelmas
12 Feb 2008, 17:11
Forum: Wishlist
Topic: Choose explicitely between EPSV and PASV
Replies: 1
Views: 3137

Choose explicitely between EPSV and PASV

Can we choose explicitely between EPSV and PASV ? I add a parameter to my distribution (1.3.2) to do so : void setPassive(bool flag, bool useExtendedPassiveMode = true); // .h void FTPClientSession::setPassive(bool flag, bool useExtendedPassiveMode) { // .cpp _passiveMode = flag; _supports1738 = use...
by cdelmas
20 Dec 2007, 18:49
Forum: Wishlist
Topic: Windows: WinService
Replies: 3
Views: 4913

Re: Windows: WinService

> Is it possible to add the possibility to change the account used to launch a service (that is provide the two last arguments to CreateServiceW) ? This could be implemented adding optional parameters to registerService, along with a "setAccount" (or something equivalent) function (using ChangeServi...
by cdelmas
18 Sep 2007, 14:44
Forum: Site Feedback
Topic: new line and c++ code not rendered in forum posts
Replies: 3
Views: 7577

Re: Re: Re: new line and c++ code not rendered in forum posts

Newlines are a special character I guess. To render a new line, you have to insert two newlines in fact. Maybe the TikiWiki documentation could help you.
by cdelmas
11 Sep 2007, 17:24
Forum: Site Feedback
Topic: new line and c++ code not rendered in forum posts
Replies: 3
Views: 7577

Re: new line and c++ code not rendered in forum posts

You can inline code using the special couple of tags { CODE() } and { CODE } , with no spaces.
The resulting will be for instance :

Code: Select all


#include "something.h"

void toto() {
    doSomethingElse();
}

by cdelmas
10 Aug 2007, 16:23
Forum: Support
Topic: Reactor / Connector
Replies: 2
Views: 3571

Re: Reactor / Connector

I've found why this isn't ok. In the SocketReactor: :run function, there is a call to Socket: :select that fails because the inner : :select call returns -1. readList, writeList and exceptList are all empty lists, so select is called as follows : fd_set readl, writel, exceptl; FD_ZERO(&readl); FD_ZE...
by cdelmas
09 Aug 2007, 15:39
Forum: Wishlist
Topic: Weak pointers support
Replies: 2
Views: 4359

Re: Weak pointers support

> Is it planned to add support to weak pointers to Poco ? A "weak pointer" is a reference object (same kind as SharedPtr) but doens't have any responsibility about resource management. A resource held by a SharedPtr is freed when reference count falls to 0. If this resource is also held by a WeakPtr...
by cdelmas
03 Aug 2007, 15:47
Forum: Support
Topic: logging : rotation at time strategy
Replies: 4
Views: 4151

Re: Re: logging : rotation at time strategy

>> P.S. I'm not sure what side-effects this may produce related to the funny NTFS optimization" described in LogFile_WIN32.cpp constructor comment. The funny optimization (called file tunneling, I don't understand why ?!) described in LogFile_WIN32.cpp can be patched using "SetFileTime" : ^Sets the ...
by cdelmas
31 Jul 2007, 16:42
Forum: Support
Topic: logging : rotation at time strategy
Replies: 4
Views: 4151

Re: logging : rotation at time strategy

I have another problem, but it would probably be easy to patch. When a file is rotated, it must be destroyed then recreated. Indeed, the roll over will occur every time once the delay is over, resulting in too many archives.

Go to advanced search

cron