My problem is that i dont receive the values i want.
That's certainly a shame. Perhaps if you posted ALL of your sender code, and ALL of the receiver code, and an example of what is sent and an example of what is received, we might be able to help you.