So i have made a functional communicating project on transport layer for a client scene and server scene.
But i have this feeling there is something that i don’t know that i don’t know.
My transport layer is pretty simple i set it up connecting as per the example code, and start using the receive method and send methods to send data back and forth. Is there nothing i need to be doing for that?
So for example i have been looking at the NetworkConnection.cs file and theres a lot of stuff going on with no real explanation on what half of it is doing?
Mentions of Dispose? And adjusting packet sizes, not fully sure what a packet is? Is that the full byte array i send ?
I am also trying to find their receive method to see what unet might have that i might have missed but i can’t find the script it is in.
I feel like there should be more to it than just simply receive a byte array and using a switch statement to process it. Isn’t there any security things to worry about ?
I am struggling to find any real information on it, i am essentially developing blind and so far it works but no idea if what i have made is on the right path.
Well people sending their own byte arrays or even just empty messages or any other potential security issue that i don’t know about. Do you know where their Receive method is to reads the messages that are sent ? Because i could not find it.
That is a part of the library. And what you are talking about, are cheaters. They modify what they send to you. So never trust them with more than you have to.
What are you talking about the Recieve method is clearly used some where in the HLAPI so i am trying to find the script that is doing so. Since i can use the Recieve it must also be used in the HLAPI otherwise how it is recieving messages from the client?
The NetworkTransport class is Closed Source. All other classes are HLAPI. The HLAPI is built ontop of the LLAPI. So the HLAPI calls the NetworkTransport.Recieve method and then does it’s own fancy stuff with it.
Oh, that was the send. Not sure where the Recieve is done. Haven’t looked at the HLAPI code too much. But I guess in the client object or something alike.