开发者

SocketException (The system call was cancelled)

开发者 https://www.devze.com 2022-12-25 14:49 出处:网络
I am working on a android project and I need to connect the gPhone with the PC using UDP socket. The same operation, sending a message to from gPhone to the PC, returns different results in different

I am working on a android project and I need to connect the gPhone with the PC using UDP socket. The same operation, sending a message to from gPhone to the PC, returns different results in different time: Sometimes succeeded and sometimes throws a SocketException(The system call was cancelled开发者_Go百科).

Can anyone tell me what possibly results in this SocketException?


Add this to your app's manifest:

<uses-permission android:name="android.permission.INTERNET" />
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号