Hi guys. Thanks for the quick replies.
@RadioTeeth: Why should I do the destination_address differently?
@hplus0603: Yes, handle is a valid socket and it's bound to the right ports and everything.
sendto() returns 4
recvfrom() returns -1 in the current state but I'll be changing things now so I'll keep you updated what they return if you want.
EDIT: So I changed some things like Radioteeth suggested but that doesn't seem to change anything. I have this code to test out if my program receives it's own messages:
pNetworkObject->ReceivePacket(); pNetworkObject->SendPacket("hello"); pNetworkObject->SendPacket("second hello"); pNetworkObject->ReceivePacket();