Thanks!
In the absence of proper documentation about UDP sockets, I can only speculate that the following calls are probably specific to TCP sockets in ns3:
m_socket->SetConnectCallback (
MakeCallback (&BulkSendApplication::ConnectionSucceeded, this),
MakeCallback (&BulkSendApplication::ConnectionFailed, this));
m_socket->SetSendCallback (
MakeCallback (&BulkSendApplication::DataSend, this));
The second call is problematic if UDP sockets have infinite buffer at the sending side.
Majid