1sip_process_new_paSceksesti(o3nSIIPn)itiation Protocol LibrarsyipF_upnrcotcieosnss_new_packet(3SIP)
2
3
4
6 sip_process_new_packet - send an inbound message to the SIP stack for
7 processing
8
10 cc [ flag ... ] file ... -lsip [ library ... ]
11 #include <sip.h>
12
13 void sip_process_new_packet(sip_conn_object_t conn_object,
14 void *msgstr, size_t msgstr);
15
16
18 The sip_process_new_packet() function receives incoming message, cre‐
19 ates a SIP message, processes it and passes it on to the application.
20 For a byte-stream protocol like TCP sip_process_new_packet() also takes
21 care of breaking the byte stream into message boundaries using the CON‐
22 TENT-LENGTH header in the SIP message. If the SIP message arriving on
23 TCP does not contain a CONTENT-LENGTH header, the behavior is unspeci‐
24 fied. sip_process_new_packet() deletes the SIP message on return from
25 the application's receive function, thus if the application wishes to
26 retain the SIP message for future use, it must use sip_hod_msg() so
27 that the message is not freed by sip_process_new_packet().
28
30 The value of errno is not changed by these calls in the event of an
31 error.
32
34 See attributes(5) for descriptions of the following attributes:
35
36
37
38
39 ┌─────────────────────────────┬─────────────────────────────┐
40 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
41 ├─────────────────────────────┼─────────────────────────────┤
42 │Interface Stability │Committed │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │MT-Level │MT-Safe │
45 └─────────────────────────────┴─────────────────────────────┘
46
48 libsip(3LIB)
49
50
51
52SunOS 5.11 25 Jan 2007 sip_process_new_packet(3SIP)