|
546 |
* \returns Pointer to interface. |
546 |
* \returns Pointer to interface. |
547 |
*/ |
547 |
*/ |
548 |
Ptr<NetDevice> GetBoundNetDevice (); |
548 |
Ptr<NetDevice> GetBoundNetDevice (); |
|
|
549 |
|
550 |
|
551 |
/** |
552 |
* \brief Configure whether broadcast datagram transmissions are allowed |
553 |
* |
554 |
* This method corresponds to using setsockopt() SO_BROADCAST of |
555 |
* real network or BSD sockets. If set on a socket, this option |
556 |
* will enable or disable packets to be transmitted to broadcast |
557 |
* destination addresses. |
558 |
* |
559 |
* \param allowBroadcast Whether broadcast is allowed |
560 |
*/ |
561 |
virtual void SetAllowBroadcast (bool allowBroadcast) = 0; |
562 |
|
563 |
/** |
564 |
* \brief Query whether broadcast datagram transmissions are allowed |
565 |
* |
566 |
* This method corresponds to using getsockopt() SO_BROADCAST of |
567 |
* real network or BSD sockets. |
568 |
* |
569 |
* \returns true if broadcast is allowed, false otherwise |
570 |
*/ |
571 |
virtual bool GetAllowBroadcast () const = 0; |
572 |
|
549 |
|
573 |
|
550 |
protected: |
574 |
protected: |
551 |
void NotifyConnectionSucceeded (void); |
575 |
void NotifyConnectionSucceeded (void); |