pjsip_msg_body class final
Generic abstraction to message body. When an incoming message is parsed (pjsip_parse_msg()), the parser fills in all members with the appropriate value. The 'data' and 'len' member will describe portion of incoming packet which denotes the message body. When application needs to attach message body to outgoing SIP message, it must fill in all members of this structure.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
clone_data
↔ Pointer<
NativeFunction< Pointer< >Void> Function(Pointer<pj_pool_t> pool, Pointer<Void> data, UnsignedInt len)> -
Clone the data part only of this message body. Note that this only
duplicates the data part of the body instead of the whole message
body. If application wants to duplicate the entire message body
structure, it must call #pjsip_msg_body_clone().
getter/setter pair
- content_type ↔ pjsip_media_type
-
MIME content type.
For incoming messages, the parser will fill in this member with the
content type found in Content-Type header.
getter/setter pair
-
data
↔ Pointer<
Void> -
Pointer to buffer which holds the message body data.
For incoming messages, the parser will fill in this member with the
pointer to the body string.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- len ↔ int
-
The length of the data.
For incoming messages, the parser will fill in this member with the
actual length of message body.
getter/setter pair
-
print_body
↔ Pointer<
NativeFunction< Int Function(Pointer< >pjsip_msg_body> msg_body, Pointer<Char> buf, pj_size_t size)> -
Pointer to function to print this message body.
Application must set a proper function here when sending outgoing
message.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited