LocalSocketAddress LocalServerSocket LocalSocket 用法?

Android的基本打的欠好,想相识一下这几个类的用法~

mAudioReceiveSocket = new LocalSocket(); try { mAudioLocalServerSocket = new LocalServerSocket("Audio"); mAudioReceiveSocket.connect(new LocalSocketAddress("Audio")); mAudioReceiveSocket.setReceiveBufferSize(500000); mAudioReceiveSocket.setSendBufferSize(500000); mAudioLocalClientSocket = mAudioLocalServerSocket.accept(); mAudioLocalClientSocket.setReceiveBufferSize(500000); mAudioLocalClientSocket.setSendBufferSize(500000); mAudioListenThread = new LocalListenThread(true); mAudioListenThread.start(); }

上段代码内里的“Audio” ,是不是要替换成详细的url地点?

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/8309.html