- Home /
Network Communication - sending packets without RPC/NetworkView?
Bit of an odd question, but something I'm struggling a little bit with. I'm currently working on a project which has a "dumb client" and a "smart client"; both entirely different projects as far as Unity is concerned. Network connections and whatnot is easy, as that's just simple port listening; but how can I go about sending packets between the clients via Unity, when they're entirely different projects?
So for example, the "dumb client" might want to send the command "move forward" to the smart client, but requires no response back - not even an acknowledgement, or any rendering changes on the dumb client. The smart client simply receives the command, and processes it on their side.
Right now every tutorial I see is based around NetworkView, and sharing one common world space/project. Is there any way I can break it down to a lower level, and just pack/read UDP packets myself within Unity?
i.e: dumb client packs a UDP packet with a string reading "moveForward", smart client receives the packet, reads the string, and executes the method "moveForward".
Sending UDP packets shouldn't be a problem, see here for instance. http://forum.unity3d.com/threads/simple-udp-implementation-send-read-via-mono-c.15900/
Thanks @merry_christmas ! Any ideas on if the above methods would work on an Android-based system? I've heard conflicting stories about mono libraries playing nice outside of Windows.