NAME
sdpquery
—
SDP query utility
SYNOPSIS
sdpquery |
-h |
sdpquery |
[-d device]
-a address
command [parameters ...] |
sdpquery |
[-c path]
-l command
[parameters ...] |
DESCRIPTION
Thesdpquery
utility attempts to query the specified
Service Discovery Protocol (SDP) server. Remote SDP servers are identified by
their address. Connection to the local SDP server is made via the control
socket. The sdpquery
utility uses Service Search
Attribute Requests and prints results to standard output and error messages to
standard error.
The options are as follows:
-a
address- Connect to the remote device with the specified address. The address can
be specified as BD_ADDR or a name. If a name was specified, the
sdpquery
utility attempts to resolve the name via bt_gethostbyname(3). If no remote address is given,sdpquery
attempts to contact a local SDP server via the control socket. -c
path- Specify path to the control socket. The default path is /var/run/sdp.
-d
device- Connect from the local device with the specified address. The device can
be specified by BD_ADDR or device name. See
btconfig(8) for a list of devices available. If no device
is specified, the
sdpquery
utility will use the best available. -l
- Query the local SDP server via the control socket.
-h
- Display usage message and exit.
The currently supported commands in
sdpquery
are:
Browse
[group]- Browse for services. The group parameter is a 16-bit UUID of the group to browse. If omitted, the Public Browse Group. is used.
Search
service- Search for the service. The
service parameter is a 16-bit UUID of the service to
search for. For the following services it is possible to use service name
instead of service UUID:
- CIP
- Common ISDN Access
- CTP
- Cordless Telephony
- DUN
- DialUp Networking
- FAX
- Fax
- FTRN
- OBEX File Transfer
- GN
- Group ad-hoc Network
- HID
- Human Interface Device
- HF
- Handsfree
- HSET
- Headset
- LAN
- LAN Access Using PPP
- NAP
- Network Access Point
- OPUSH
- OBEX Object Push
- PANU
- Personal Area Networking User
- SP
- Serial Port
EXIT STATUS
The sdpquery
utility exits 0 on
success, and >0 if an error occurs.
SEE ALSO
HISTORY
The sdpquery
command first appeared in
FreeBSD 5.3 as sdpcontrol
.
It was ported to NetBSD 4.0 under its present name
by Iain Hibbert under the sponsorship of Itronix,
Inc and imported into DragonFly 1.11.
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com> and Iain Hibbert for Itronix, Inc.
CAVEATS
The sdpquery
utility only requests the
following attributes from the SDP server:
- Service Record Handle
- Service Class ID List
- Protocol Descriptor List
- Bluetooth Profile Descriptor List