Closed Upd4ting closed 6 years ago
@Upd4ting do you call PollEvents on server?
@RevenantX Yeah I have this https://gyazo.com/881c2f84cbd612b1ce95a7673df74a13
@Upd4ting connection event works?
@Upd4ting this is very strange code anyway...
@Upd4ting look at example https://github.com/RevenantX/LiteNetLib/blob/master/LiteNetLibSampleUnity/Assets/GameClient.cs
I'll read that and adapt my code to use this pattern, i'll tell you if that helps :) Thanks for being active on this!
With this lib I can make so Client connect to server, and client dialog with the server and server respond right?
@Upd4ting you can do this with simple TCP socket (and with library) :) This library intended for fast multiplayer games)
@RevenantX I don't want to use TCP because I need something fast. Does that mean that dialog between client-server is not possible with this library? I need something fast because i'm sending 30 request second with pictures from a camera and the server will do computer vision and send result
@Upd4ting any communication type is possible with this library. This just depends on how you implement this. This library is just transport.
@Upd4ting if all your data must be sent reliably (reliable ordered) better use TCP.
@RevenantX TCP would be faster than this? I just need them ordered not reliable
Is there an option for that ?
@Upd4ting SendOptions.Sequenced.
I have this error: Error: Unreliable packet size > allowed (1429) Is there a way to increase this?
@Upd4ting automatic fragmentation works only for reliable packets. So you can split packet by hands into small pieces. (by size of MTU)
@RevenantX Yeah that's understandable. So if I need that ReliableOrdered will your UDP lib be faster that just a TCP implementation?
@Upd4ting no.
@RevenantX Okay thanks. I'll do some testing on my side. Thanks for helping!
It seems that my server isn't receiving all the request. Client send around 30 request per second and the server only receive one sometime.
Client code: https://hastebin.com/omujamegod.cs Server code: https://hastebin.com/akavofogup.vbs
Library version: Last released version
Framework: Unity, .NET Framework
OS: Windows