SYNOPSIS

  use SMS::PDU::UserData;
  $ud = SMS::PDU::UserData->decode;
  $binstr = $ud->encode;

DESCRIPTION

The SMS::PDU::UserData class allows you to encode or decode SMS Protocol Data Units (PDU) UserData fields. This is used by SMS::PDU::Deliver and SMS::PDU::Submit for instance.

The following methods are available:

SMS::PDU::UserData->decode

Decode an octet string into an SMS TP-UD

$ud->decode_udh

Decode an SMS TP-UD's User Data Header from an octet string

$ud->encode

Encode an SMS TP-UD into an octet string

$ud->encode_udh

Encode an SMS TP-UD's User Data Header into an octet string

$ud->hasUDHI

Returns true if an SMS TP-UD's contains a User Data Header

$ud->coding

Returns the type of coding of an SMS TP-UD (7bit, 8bit, UCS2)

$ud->clone

Return a copy of a UserData

$ud->split

Split a TP-UD into several TP-UD if the data does not fit in a single one.

Copyright

umts-tools is copyright© 2004-2006 Jeremy Lainé. This software is distributed under the terms of the GNU General Public License (GPL).