--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/3add8977-4422-aa5d-7127-f112ff41a1d1%40tomh.org.
Hello, I've tried to follow your suggestions (they helped me a lot!), but I have the following problem: after having sent the packet (in the attached code it's a buffer) from the server to the client, it seems that the packet isn't really received because the variable recPacket of the attached code is a null pointer. I don't know why this could happen because client and server seem to be correctly connected and because the buffer that the server sends to the client isn't empty.
When you send a packet, you have to wait some amount of
simulation time for it to be received on the destination. It
looks like you are just trying to receive it immediately after
calling SendTo().