2010-04-18 16:28:51

by Daniel Abraham

[permalink] [raw]
Subject: obexd FTP server signals

Hi, I have a question:

Is there any way to get more transaction-related signals from obexd,
when it's used as an FTP _server_?

As far as I can see from "obexd-api.txt" and from dbus-monitor, the
only things to catch are "session_started" and "session_removed".

But I'd like to have a level of granularity similar to the FTP client:
signals about starting/progress/canceling/completing transfers, which
specific kinds of trasfers are done (list folder, get file, put file,
etc.).

Any ideas?

Thanks


2010-04-19 05:26:02

by Daniel Abraham

[permalink] [raw]
Subject: Re: obexd FTP server signals

On Sun, Apr 18, 2010 at 9:27 PM, Vinicius Gomes
<[email protected]> wrote:
> On Sun, Apr 18, 2010 at 1:28 PM, Daniel Abraham
> <[email protected]> wrote:
>> But I'd like to have a level of granularity similar to the FTP client:
>> signals about starting/progress/canceling/completing transfers, which
>> specific kinds of trasfers are done (list folder, get file, put file,
>> etc.).
>
> At first we considered some form of status reporting, but after
> thinking and looking at other "file sharing" servers we noticed that
> it was not really useful for the server to report that information,
> for example, sshd and any ftp server, don't have any form of status
> reporting.
>
> In those cases only the client reports the status, because the client
> is where the user has control. I don't think obexd is much different
> from those servers.
>
> But, do you have a concrete case for this?

1. Using it as a benchmark platform

In that case, the server is the focus point for gathering data
(consistently), and the clients are just remote black boxes. If I
can't expect and respond to specific events, I'd have to write
equivalent apps for each OS, which is sometimes impossible, and then
hope that methodology & measurements are consistent.

2. Basis for server activity logging

3. Less specific, but the sky is the limit: enabling server-side
timeouts/triggers/dynamic content/etc. - based on the user actions,
flows, history...

Anyway, my personal interest is in automating, logging and timing file
transfers from/to unknown remote clients.

Thanks

2010-04-18 18:27:01

by Vinicius Costa Gomes

[permalink] [raw]
Subject: Re: obexd FTP server signals

Hi Daniel,

On Sun, Apr 18, 2010 at 1:28 PM, Daniel Abraham
<[email protected]> wrote:
> Hi, I have a question:
>
> Is there any way to get more transaction-related signals from obexd,
> when it's used as an FTP _server_?
>

No. At least, not yet.

> As far as I can see from "obexd-api.txt" and from dbus-monitor, the
> only things to catch are "session_started" and "session_removed".
>
> But I'd like to have a level of granularity similar to the FTP client:
> signals about starting/progress/canceling/completing transfers, which
> specific kinds of trasfers are done (list folder, get file, put file,
> etc.).
>
> Any ideas?

At first we considered some form of status reporting, but after
thinking and looking at other "file sharing" servers we noticed that
it was not really useful for the server to report that information,
for example, sshd and any ftp server, don't have any form of status
reporting.

In those cases only the client reports the status, because the client
is where the user has control. I don't think obexd is much different
from those servers.

But, do you have a concrete case for this?

>
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


Cheers,
--
Vinicius