Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

Asynchronous Sockets still have problem in 4.6.3f1 with IL2CPP

$
0
0
Here we just upgrade our project to 4.6.3f1 to support x64 in iOS. yet we found the network is no longer working well (only) when deployed on iOS x64. ---------- //initial bytesData //.... _Socket.BeginSend(bytesData, 0, bytesData.Length, SocketFlags.None, new AsyncCallback(SocketSended), null); The BeginSend just don't response. Neither SocketSended is called nor the server recieved the data. I've read about official logs that Asynchronous Socket is supported by IL2CPP in the 4.6.3 release, and the Socket connection works just fine(Socket.BeginConnect). Can anyone help me out of that? ---------- Update 3.17 : Just Locate the problem more sepecific. The none-functional code is like this below: class tcpClient { public void Connect() { //init socket //... mSocket.BeginConnect(..., OnConnected, ..); } public void SendData(...) { //init bytesData //... mSocket.BeginSend(bytesData,..., OnSended); } private void OnConnected() { mSocket.BeginReceive(..., OnReceived, ..);//when remove this line, SendData works SendData(...); } private void OnSended() { ... } private void OnReceived() { ... } } However, if I removed BeginReceive line, the BeginSend works again. Further more, I've tried to switch BeginSend to Send. It also doesn't work. And Again, this situation only happened when my project is deployed on ios x64. In any other cases like ios x86/android/editor the code works just fine. ---------- Update 3.18 : I've created a simple client to test the .Net Asynchronous Socket interface. Turns out BeginSend and BeginReceive can work well separately. Only one can be functional when both used, the other must use the block method (eg. BeginSend + Receive/BeginReceive + Send)

Viewing all articles
Browse latest Browse all 598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>