]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/bluetooth/sdpd/sdpd.8
bluetooth: Fix a mandoc related issues
[FreeBSD/FreeBSD.git] / usr.sbin / bluetooth / sdpd / sdpd.8
1 .\" Copyright (c) 2004 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 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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: sdpd.8,v 1.1 2004/01/13 19:31:54 max Exp $
26 .\" $FreeBSD$
27 .\"
28 .Dd January 13, 2004
29 .Dt SDPD 8
30 .Os
31 .Sh NAME
32 .Nm sdpd
33 .Nd Bluetooth Service Discovery Protocol daemon
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl dh
37 .Op Fl c Ar path
38 .Op Fl g Ar group
39 .Op Fl u Ar user
40 .Sh DESCRIPTION
41 The
42 .Nm
43 daemon keeps track of the Bluetooth services registered on the host
44 and responds to Service Discovery inquiries from the remote Bluetooth devices.
45 .Pp
46 In order to use any service remote Bluetooth device need to send Service
47 Search and Service Attribute or Service Search Attribute request over
48 Bluetooth L2CAP connection on SDP PSM (0x0001).
49 The
50 .Nm
51 daemon will try to find matching Service Record in its Service Database
52 and will send appropriate response back.
53 The remote device then will process the response, extract all required
54 information and will make a separate connection in order to use the service.
55 .Pp
56 Bluetooth applications, running on the host, register services with
57 the local
58 .Nm
59 daemon.
60 Operation like service registration, service removal and service change are
61 performed over the control socket.
62 It is possible to query entire content of the
63 .Nm
64 Service Database with
65 .Xr sdpcontrol 8
66 by issuing
67 .Cm browse
68 command on the control socket.
69 .Pp
70 The command line options are as follows:
71 .Bl -tag -width indent
72 .It Fl d
73 Do not detach from the controlling terminal.
74 .It Fl c Ar path
75 Specify path to the control socket.
76 The default path is
77 .Pa /var/run/sdp .
78 .It Fl g Ar group
79 Specifies the group the
80 .Nm
81 should run as after it initializes.
82 The value specified may be either a group name or a numeric group ID.
83 This only works if
84 .Nm
85 was started as root.
86 The default group name is
87 .Dq Li nobody .
88 .It Fl h
89 Display usage message and exit.
90 .It Fl u Ar user
91 Specifies the user the
92 .Nm
93 should run as after it initializes.
94 The value specified may be either a user name or a numeric user ID.
95 This only works if
96 .Nm
97 was started as root.
98 The default user name is
99 .Dq Li nobody .
100 .El
101 .Sh FILES
102 .Bl -tag -width ".Pa /var/run/sdp" -compact
103 .It Pa /var/run/sdp
104 .El
105 .Sh SEE ALSO
106 .Xr sdp 3 ,
107 .Xr sdpcontrol 8
108 .Sh AUTHORS
109 .An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com
110 .Sh CAVEATS
111 The
112 .Nm
113 daemon
114 will listen for incoming L2CAP connections on a wildcard BD_ADDR.
115 .Pp
116 In case of multiple Bluetooth devices connected to the same host it is
117 possible to specify which services should be
118 .Dq bound
119 to which Bluetooth device.
120 Such assignment should be done at service registration time.
121 .Pp
122 Requests to register, remove or change service can only be made via the
123 control socket.
124 The
125 .Nm
126 daemon will check peer's credentials and will only accept the request if
127 the application has the same effective user ID as the
128 .Dq Li root
129 user ID.
130 .Pp
131 The
132 .Nm
133 daemon does not check for duplicated Service Records.
134 It only performs minimal checking on the service data sent in the Service
135 Register request.
136 It is assumed that application must obtain all required resources such
137 as RFCOMM channels etc., before registering the service.
138 .Sh BUGS
139 Most likely.
140 Please report if found.