Home › Forums › Support › Trouble getting started › Reply To: Trouble getting started
For pure speed, if you are sending small objects you want to use something along these lines:
//Change default send receive options to remove compression
NetworkComms.DefaultSendReceiveOptions = new SendReceiveOptions<ProtobufSerializer>();
//Create the connection
Connection newConnection = UDPConnection.GetConnection(new ConnectionInfo(“192.168.0.1”, 10000), UDPOptions.None);
newConnection.SendObject(“packetName”, “This is the information I want to send!”);
Here we are just sending a string but you might also want to send small structs or classes containing the necessary information. For an example on how to send custom objects checkout the AdvancedSend example in the ExamplesConsole project. You’ll have to download the source zip bundle for that.