UDP/TCP Simple example on how to send a receive messages from two Unity builds

Hi Im trying to send and receive messages between 2 unity builds over a LAN as fast as possible, I have used the in-built unity networking and I get a Ping of 30-100ms which is two poor (Im after <10ms).

So after those tests I am looking at writing either a UDP/TCP simple string sender between the computers. My main question has anyone got an example of how to send and receive a simple string using either TCP/UDP.

Thanks for the help.

In Unity, you have access to all the standard .Net socket functions, so I would suggest perhaps trying some of the non unity-specific C# socket tutorials or examples out there, such as this one:

Simple Client-server Interactions using C#

Hi,

I suggest the BeamServer library, look at http://www.beamserver.com/