1sip_get_msg_len(3SSIePs)sion Initiation Protocol Library Functsiiopn_sget_msg_len(3SIP)
2
3
4
6 sip_get_msg_len - returns the length of the SIP message
7
9 cc [ flag ... ] file ... -lsip [ library ... ]
10 #include <sip.h>
11
12 int sip_get_msg_len(sip_msg_t sip_msg,
13 int *error);
14
15
17 The sip_get_msg_len() function will return the length of the SIP mes‐
18 sage sip_msg.
19
21 For functions that return an integer, the return value is the specified
22 value on success and -1 on error.
23
24
25 The value of errno is not changed by these calls in the event of an
26 error.
27
29 This function takes a pointer to an integer error as an argument. If
30 the error is non-null, one of the following values is set:
31
32 EINVAL The input SIP message sip_msg or the header value is null; or
33 the specified header/header value is deleted.
34
35
36 EPROTO The header value is not present or invalid. The parser could
37 not parse it correctly.
38
39
40 ENOMEM There is an error allocating memory for the return value.
41
42
43
44 On success, the value of the location pointed to by error is set to 0.
45
47 See attributes(5) for descriptions of the following attributes:
48
49
50
51
52 ┌─────────────────────────────┬─────────────────────────────┐
53 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │Interface Stability │Committed │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │MT-Level │MT-Safe │
58 └─────────────────────────────┴─────────────────────────────┘
59
61 libsip(3LIB)
62
63
64
65SunOS 5.11 09 Feb 2007 sip_get_msg_len(3SIP)