sdp.3 (131472) | sdp.3 (131504) |
---|---|
1.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.\" $Id: sdp.3,v 1.1 2003/09/07 20:34:19 max Exp $ | 1.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.\" $Id: sdp.3,v 1.1 2003/09/07 20:34:19 max Exp $ |
26.\" $FreeBSD: head/lib/libsdp/sdp.3 131472 2004-07-02 19:07:33Z ru $ | 26.\" $FreeBSD: head/lib/libsdp/sdp.3 131504 2004-07-02 23:52:20Z ru $ |
27.\" 28.Dd September 7, 2003 29.Dt SDP 3 30.Os 31.Sh NAME 32.Nm SDP_GET8 , 33.Nm SDP_GET16 , 34.Nm SDP_GET32 , --- 61 unchanged lines hidden (view full) --- 96.Fn SDP_GET16 , 97.Fn SDP_GET32 , 98.Fn SDP_GET64 99and 100.Fn SDP_GET128 101macros are used to get byte, short, long, long long and 128-bit integer 102from the buffer pointed by 103.Vt cp | 27.\" 28.Dd September 7, 2003 29.Dt SDP 3 30.Os 31.Sh NAME 32.Nm SDP_GET8 , 33.Nm SDP_GET16 , 34.Nm SDP_GET32 , --- 61 unchanged lines hidden (view full) --- 96.Fn SDP_GET16 , 97.Fn SDP_GET32 , 98.Fn SDP_GET64 99and 100.Fn SDP_GET128 101macros are used to get byte, short, long, long long and 128-bit integer 102from the buffer pointed by 103.Vt cp |
104pointer. The pointer is automatically advanced. | 104pointer. 105The pointer is automatically advanced. |
105.Pp 106The 107.Fn SDP_PUT8 , 108.Fn SDP_PUT16 , 109.Fn SDP_PUT32 , 110.Fn SDP_PUT64 111and 112.Fn SDP_PUT128 113macros are used to put byte, short, long, long long and 128-bit integer 114into the buffer pointed by 115.Vt cp | 106.Pp 107The 108.Fn SDP_PUT8 , 109.Fn SDP_PUT16 , 110.Fn SDP_PUT32 , 111.Fn SDP_PUT64 112and 113.Fn SDP_PUT128 114macros are used to put byte, short, long, long long and 128-bit integer 115into the buffer pointed by 116.Vt cp |
116pointer. The pointer is automatically advanced. | 117pointer. 118The pointer is automatically advanced. |
117.Pp 118.Fn sdp_open 119and 120.Fn sdp_open_local 121functions each return a pointer to an opaque object describing SDP session. 122The 123.Vt l 124argument passed to --- 62 unchanged lines hidden (view full) --- 187Class IDs. 188The maximum number of Service Class IDs in the array is 12. 189The 190.Vt plen 191parameter is the length of the Service Search pattern. 192The 193.Vt ap 194parameter is a Attribute ID Range List - an array of one or more SDP Attribute | 119.Pp 120.Fn sdp_open 121and 122.Fn sdp_open_local 123functions each return a pointer to an opaque object describing SDP session. 124The 125.Vt l 126argument passed to --- 62 unchanged lines hidden (view full) --- 189Class IDs. 190The maximum number of Service Class IDs in the array is 12. 191The 192.Vt plen 193parameter is the length of the Service Search pattern. 194The 195.Vt ap 196parameter is a Attribute ID Range List - an array of one or more SDP Attribute |
195ID Range. Each attribute ID Range is encoded as a 32-bit unsigned integer data | 197ID Range. 198Each attribute ID Range is encoded as a 32-bit unsigned integer data |
196element, where the high order 16 bits are interpreted as the beginning 197attribute ID of the range and the low order 16 bits are interpreted as the 198ending attribute ID of the range. 199The attribute IDs contained in the Attribute ID Ranges List must be listed in 200ascending order without duplication of any attribute ID values. 201Note that all attributes may be requested by specifying a range of 2020x0000-0xFFFF. 203The --- 32 unchanged lines hidden (view full) --- 236.Vt vlen 237and 238.Vt value 239must be set. 240The 241.Fn sdp_search 242function will fill each 243.Vt sdp_attr_t | 199element, where the high order 16 bits are interpreted as the beginning 200attribute ID of the range and the low order 16 bits are interpreted as the 201ending attribute ID of the range. 202The attribute IDs contained in the Attribute ID Ranges List must be listed in 203ascending order without duplication of any attribute ID values. 204Note that all attributes may be requested by specifying a range of 2050x0000-0xFFFF. 206The --- 32 unchanged lines hidden (view full) --- 239.Vt vlen 240and 241.Vt value 242must be set. 243The 244.Fn sdp_search 245function will fill each 246.Vt sdp_attr_t |
244structure with attribute and value, i.e. it will set | 247structure with attribute and value, i.e., it will set |
245.Vt flags , 246.Vt attr 247and 248.Vt vlen 249fields. 250The actual value of the attribute will be copied into 251.Vt value 252buffer. --- 145 unchanged lines hidden --- | 248.Vt flags , 249.Vt attr 250and 251.Vt vlen 252fields. 253The actual value of the attribute will be copied into 254.Vt value 255buffer. --- 145 unchanged lines hidden --- |