Session Initiation Protocol Library Functions
sipprocessnewpacket(3SIP)
NAME
sipprocessnewpacket - send an inbound message to the SIP
stack for processing
SYNOPSIS
cc [ flag ... ] file ... -lsip [ library ... ]
#include
void sipprocessnewpacket(sipconnobjectt connobject,
void *msgstr, sizet msgstr);
DESCRIPTION
The sipprocessnewpacket() function receives incoming mes-
sage, creates a SIP message, processes it and passes it on
to the application. For a byte-stream protocol like TCP
sipprocessnewpacket() also takes care of breaking the
byte stream into message boundaries using the CONTENT-LENGTH
header in the SIP message. If the SIP message arriving on
TCP does not contain a CONTENT-LENGTH header, the behavior
is unspecified. sipprocessnewpacket() deletes the SIP
message on return from the application's receive function,
thus if the application wishes to retain the SIP message for
future use, it must use siphodmsg() so that the message is
not freed by sipprocessnewpacket().
RETURN VALUES
The value of errno is not changed by these calls in the
event of an error.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
libsip(3LIB)
SunOS 5.11 Last change: 25 Jan 2007 1
Session Initiation Protocol Library Functions
sipprocessnewpacket(3SIP)
SunOS 5.11 Last change: 25 Jan 2007 2
|