diff options
author | emax <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-08-05 16:32:41 +0000 |
commit | c114a6212c8d37d1e410305436dd847a4270ca3b (patch) | |
tree | 6ef9a102c06ce353d524074a6e33e485a88f1c21 /usr.sbin/bluetooth/sdpcontrol | |
parent | 73d1afd6fde41cc69bc50752883e40b6fd763b5c (diff) | |
download | FreeBSD-src-c114a6212c8d37d1e410305436dd847a4270ca3b.zip FreeBSD-src-c114a6212c8d37d1e410305436dd847a4270ca3b.tar.gz |
- One can use both BD_ADDR or name to specify address of the Bluetooth device.
Update man pages to document this fact.
- Update usage messages
- Change u_intXXX to uintXXX
Diffstat (limited to 'usr.sbin/bluetooth/sdpcontrol')
-rw-r--r-- | usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 | 16 | ||||
-rw-r--r-- | usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c | 2 |
2 files changed, 11 insertions, 7 deletions
diff --git a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 index 1478aee..1f75eea 100644 --- a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 +++ b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.8 @@ -35,7 +35,7 @@ .Nm .Fl h .Nm -.Fl a Ar BD_ADDR +.Fl a Ar address .Ar command .Op Ar parameters ... .Nm @@ -47,7 +47,7 @@ The .Nm utility attempts to query specified Service Discovery Protocol (SDP) server. -Remote SDP servers are identified by their BD_ADDRs. +Remote SDP servers are identified by their address. Connection to the local SDP server is made via control socket. The .Nm @@ -56,10 +56,13 @@ the standard output and error messages to the standard error. .Pp The options are as follows: .Bl -tag -width indent -.It Fl a Ar BD_ADDR -Connect to the remote device with the specified BD_ADDR. -Example: -.Fl a Li 00:01:02:03:04:05 . +.It Fl a Ar address +Connect to the remote device with the specified address. +The address can be specified as BD_ADDR or name. +If name was specified then the +.Nm +utility will attempt to resolve the name via +.Xr bt_gethostbyname 3 . .It Fl c Ar path Specify path to the control socket. The default path is @@ -109,6 +112,7 @@ Bluetooth Profile Descriptor List .Sh DIAGNOSTICS .Ex -std .Sh SEE ALSO +.Xr bluetooth 3 , .Xr sdp 3 .Sh AUTHORS .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com diff --git a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c index 6cb4863..fca2015 100644 --- a/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c +++ b/usr.sbin/bluetooth/sdpcontrol/sdpcontrol.c @@ -209,7 +209,7 @@ usage(void) fprintf(stderr, "Usage: sdpcontrol options command\n" \ "Where options are:\n" -" -a bdaddr specify bdaddr\n" \ +" -a address address to connect to\n" \ " -c path path to the control socket (default is %s)\n" \ " -h display usage and quit\n" \ " -l connect to the local SDP server via control socket\n" \ |