-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
supersocket 2.0 with unity3d 2022.3 #691
Comments
It looks like network protocol issue. Which kind of protocol do you use? |
I'm facing this issue too. Could anyone give me some advice? |
Could you point the code you debugged? |
I solved it.
}
}
} |
I will try to understand the problem. |
@wangruoyi1996 @jessienms I only noticed one difference between @wangruoyi1996 's solution and SuperSocket's code. The fix
The SuperSocket
SuperSocket get the generic type argument's type inferring instead of declaring the type directly. It looks like a compiling issue? |
Pushed a fix according to my guess: |
supersocket 2.0.0
unity3d 2022.3.13f1
I am currently building a server using SuperSocket and creating a game project in Unity3d to implement a feature that connects and exchanges packets. When I run the same code in a general .NET console project, the packet reception works without any problems, but when I run the same code in Unity3D, send works but recv does not.
When debugging in Unity3d, the PipeChannel.ReadPipeAsync task is executed, but when PipeReader.ReadAsync is finished and pipeChannel.ReaderBuffer is called below, the state of the buffer is all filled with 0, so a protocol error occurs.
Could you give me some advice on this problem?
The text was updated successfully, but these errors were encountered: