简体   繁体   English

是否可以在Android上使用带有BluetoothSocket的SocketChannel

[英]Is it possible to use a SocketChannel with a BluetoothSocket on Android

you can make a SocketChannel from a SocketAddress, but suppose you have a BluetoothSocket. 你可以从SocketAddress创建一个SocketChannel,但假设你有一个BluetoothSocket。 How to make a SocketChannel? 如何制作SocketChannel?

不,但您可以通过Channels类从其输入和输出流中获取ReadableByteChannelWriteableByteChannel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM