Hi,

2010/8/31 Zhang, Caiwen <caiwen.zh...@windriver.com>:
>> +             void RegisterApplicationAgent(object path, uint dest, uint
>> src)
>> +
>> +                     Registers an agent to receive application messages.
>> +
>> +                     The object path defines the path of the agent that
>> +                     will be called when an application message is ready
>> +                     to be dispatched.
>> +
>> +                     The dest parameter is the destination application
>> +                     port number, and the src parameter is the optional
>> +                     source application port number.
>> +
>> +                     Possible Errors: [service].Error.InvalidArguments
>> +                                      [service].Error.InvalidFormat
>> +                                      [service].Error.InUse
>> +
> Push message is a kind of application message. If an agent register both
> RegisterPushAgent and RegisterApplicationAgent, will the message be processed
> Twice. Will you offer same way to avoid this?

I think we'll just have a single ApplicationAgent interface that works
with app ports. I was thinking it would be elegant to be able to
register an agent only using the WAP app ID, but perhaps that's just a
waste of time.

>> +             void IncomingMessage(string message, dict info)
>> +
>> +                     New incoming text SMS received.  Info has Sender,
>> +                     LocalSentTime, and SentTime information.
>> +
>
> Is the 'message' the text content of the income message(I mean the decoded 
> user data)?

Just the body of the message (UTF-8 string), just like in the signals.

>> +             void IncomingPush(array{byte} message, dict info)
>> +
>> +                     New incoming push message received.  Info has Sender,
>> +                     LocalSentTime, SentTime, and ApplicationId
>> information.
>> +
>> +             void IncomingApplication(array{byte} message, dict info)
>> +
>> +                     New incoming application message received.  Info has
>> +                     Sender, LocalSentTime, SentTime, DestinationPort, and
>> +                     SourcePort information.
>> +
>
> Is the 'message' the whole PDU or only the user data?

The user data excluding the user data header, which we decode and
provide in the dict.

>> +             void Release()
>> +
>> +                     Agent is being released, possibly because of oFono
>> +                     terminating, the MessageManager interface being torn
>> +                     down or modem powering down.
>> --
>> 1.7.0.4
>>
>
> Will you consider send push message and application message?

Ah, good point. Yes, we obviously need to support sending binary
messages as well.

Cheers,
Aki
_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to