What connection?

This may not be the best way to do it but I convert the ints, floats, whatever to ascii and send it as text. This has the incredible advantage of being readable when debugging. I usually format the data into comma separated values (CSV) and the do a get with the values. Over the wire it would look like "Device1,128,36.4,12" and the receiving end would parse out the values it wanted.

On a pc you can do a split() to have the data values separated, on the arduino there are other techniques that you can use.

Does any of this make sense?