add .Mt to man pages in usr.sbin/
[dragonfly.git] / usr.sbin / sdpd / sdpd.8
1 .\" $NetBSD: sdpd.8,v 1.3 2007/03/18 15:53:55 plunky Exp $
2 .\"
3 .\" Copyright (c) 2004 Maksim Yevmenkin <m_evmenkin@yahoo.com>
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" SUCH DAMAGE.
26 .\"
27 .\" $Id: sdpd.8,v 1.2 2007/11/30 07:39:37 griffin Exp $
28 .\" $FreeBSD: src/usr.sbin/bluetooth/sdpd/sdpd.8,v 1.5 2005/12/06 17:56:36 emax Exp $
29 .\"
30 .Dd January 13, 2004
31 .Dt SDPD 8
32 .Os
33 .Sh NAME
34 .Nm sdpd
35 .Nd Bluetooth Service Discovery Protocol daemon
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl dh
39 .Op Fl c Ar path
40 .Op Fl G Ar group
41 .Op Fl g Ar group
42 .Op Fl u Ar user
43 .Sh DESCRIPTION
44 The
45 .Nm
46 daemon keeps track of the Bluetooth services registered on the host
47 and responds to Service Discovery inquiries from the remote Bluetooth devices.
48 .Pp
49 In order to use any service remote Bluetooth device need to send Service
50 Search and Service Attribute or Service Search Attribute request over
51 Bluetooth L2CAP connection on SDP PSM (0x0001).
52 The
53 .Nm
54 daemon will try to find matching Service Record in its Service Database
55 and will send appropriate response back.
56 The remote device then will process the response, extract all required
57 information and will make a separate connection in order to use the service.
58 .Pp
59 Bluetooth applications, running on the host, register services with
60 the local
61 .Nm
62 daemon.
63 Operation like service registration, service removal and service change are
64 performed over the control socket.
65 It is possible to query entire content of the
66 .Nm
67 Service Database with
68 .Xr sdpquery 1
69 by issuing
70 .Cm browse
71 command on the control socket.
72 .Pp
73 The command line options are as follows:
74 .Bl -tag -width indent
75 .It Fl d
76 Do not detach from the controlling terminal.
77 .It Fl c Ar path
78 Specify path to the control socket.
79 The default path is
80 .Pa /var/run/sdp .
81 .It Fl G Ar group
82 Grant permission to members of the
83 .Ar group
84 to modify the
85 .Nm
86 Service Database.
87 .It Fl g Ar group
88 Specifies the group the
89 .Nm
90 should run as after it initializes.
91 The value specified may be either a group name or a numeric group ID.
92 This only works if
93 .Nm
94 was started as root.
95 The default group name is
96 .Dq Li _sdpd .
97 .It Fl h
98 Display usage message and exit.
99 .It Fl u Ar user
100 Specifies the user the
101 .Nm
102 should run as after it initializes.
103 The value specified may be either a user name or a numeric user ID.
104 This only works if
105 .Nm
106 was started as root.
107 The default user name is
108 .Dq Li _sdpd .
109 .El
110 .Sh CAVEAT
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 the peer's credentials and will only accept the request
127 when the peer is the superuser, of if the peer is a member of the group
128 specified with the
129 .Fl G
130 option.
131 .Pp
132 The
133 .Nm
134 daemon does not check for duplicated Service Records.
135 It only performs minimal checking on the service data sent in the Service
136 Register request.
137 It is assumed that application must obtain all required resources such
138 as RFCOMM channels etc., before registering the service.
139 .Sh FILES
140 .Bl -tag -width ".Pa /var/run/sdp" -compact
141 .It Pa /var/run/sdp
142 .El
143 .Sh SEE ALSO
144 .Xr sdpquery 1 ,
145 .Xr sdp 3
146 .Sh HISTORY
147 The
148 .Nm
149 daemon first appeared in
150 .Fx 5.3
151 and was imported into
152 .Nx 4.0
153 by
154 .An Iain Hibbert
155 under the sponsorship of
156 .An Itronix, Inc.
157 It was imported into
158 .Dx 1.11 .
159 .Sh AUTHORS
160 .An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com
161 .Sh BUGS
162 Most likely.
163 Please report if found.