我正在开发一个类似于共享的应用程序。但是我正在使用wifidirect建立连接。除了两件事,我已经实现了所有内容。
1) Cancelling some of the files that are in waiting list to be transferred .
(I need to tell other device by clicking on a X mark that I don't want certain files to be
transferred , so drop them .)
2) How to close a connection in one of the device and let other device know about the connection status immediately.
我找不到方法。当我查看shareit时,发现它们实现了这些功能,但是它们是如何实现的。他们是否使用多个套接字连接?我也尝试过,但是没有用。
任何想法都值得赞赏。谢谢。