gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3110: prevent use of sm_block_many()


From: Osma Suominen
Subject: Re: 3110: prevent use of sm_block_many()
Date: Thu, 27 Feb 2003 23:57:49 +0200 (EET)

On Thu, 27 Feb 2003, Chris Kemp wrote:

> Ah, the first packet tells you the length (and so the number of packets
> still to come) yes?  If so, then yes the above is more sensible.

Yes. Each data packet contains up to 55 bytes of SMS userdata, so the
number of packets can be calculated by dividing the message length
(found in the header) by 55, rounding up. But in fact the code just
goes like this: (not real var names)

while (received_length < userdata_length) {
        sm_block_no_retry(...);
}

-Osma

-- 
*** Osma Suominen *** address@hidden *** http://www.iki.fi/ozone/ ***




reply via email to

[Prev in Thread] Current Thread [Next in Thread]