TryBuySellItemController:OnAddInModalPanel () (at Assets/Scripts/Market/TryBuySellItemController.cs:307) UnityEngine.Logger:Log (UnityEngine.LogType,object)ĬlientPacket_TryBuySellMarketObject.ctor (int,`1,int) (at Assets/Scripts/Communication/Packets/Client/ClientPacket_TryBuySellMarketObject.cs:29) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object) UnityEngine.StackTraceUtility:ExtractStackTrace () Code = 1ĬlientPacket_TryBuySellMarketObject.ClientPacket_TryBuySellMarketObject(). ServerPacket_TryBuySellMarketObjectServerAnswer.ServerPacket_TryBuySellMarketObjectServerAnswer(). ServerPacket_UpdatePlayerMainInfo.ServerPacket_UpdatePlayerMainInfo(). ClientPacket_TryBuySellMarketObject.ClientPacket_TryBuySellMarketObject()! Here is a log showing how packets are sent from the server and how they are received in the Unity client in the same socket connection (and where does packet loss occur): Also, Receive() in Update() does not help. I also heard that Unity has a time limit and the volume of packets received per unit of time.īut the fact is that I tried to send delayed packets from the server both at once and in stacks and one by one and in a row - in different ways - it didn't help. As far as I understand, it is told that Unity OnFrame FPS (Update) and Unity main thread prevent stable accepting TCP packets in Unity. On the Internet, I did not find a normal example and a normal explanation of why this is so. The acceptance of packets on Unity over TCP is very unstable and unpredictable. I verified this issue with BCM943362WCD4 SDK 3.0.1 and "tcp_server" application.Īnd then, I changed tcp_server_thread_main() function in tcp_server.Why does Unity Async BeginReceive not accept stably sent packets from the server? They just disappear somewhere on the way from the server to the client. Our customer has also met this same issue("TCP socket error") as raghu1991 said. In client side, I am getting the following output. I am using the tcp_echo_server.py given by snip.tcp_client as server. ![]() In application_start(), I am calling this function every 500ms using a register timed event. Wiced_tcp_disconnect(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |