Hello, I want to use socket->SendTo (packet, 0, from); This method sends a Packet from this Address.
According to the API manual, the type of from is address, but my current IP address is only an IPv4 address of String type, for example, std::string s = "10.1.1.2";
Then I looked up the manual on Address and found that there was only one possible way to get the Address: ns3::Address::Address (uint8_t type, const uint8_t * buffer, uint8_t len),
but I don't know what the three parameters mean and what the values of the three parameters should be?
That's why I'm asking for your help, Thank you for your help.