LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2006 Georgia Tech Research Corporation | 3 * Copyright (c) 2006 Georgia Tech Research Corporation |
4 * 2007 INRIA | 4 * 2007 INRIA |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 * \brief Get status indicating whether enable/disable packet information to s
ocket | 674 * \brief Get status indicating whether enable/disable packet information to s
ocket |
675 * | 675 * |
676 * \returns True if packet information should be sent to socket | 676 * \returns True if packet information should be sent to socket |
677 */ | 677 */ |
678 bool IsRecvPktInfo () const; | 678 bool IsRecvPktInfo () const; |
679 | 679 |
680 /** | 680 /** |
681 * \brief Manually set the socket priority | 681 * \brief Manually set the socket priority |
682 * | 682 * |
683 * This method corresponds to using setsockopt () SO_PRIORITY of | 683 * This method corresponds to using setsockopt () SO_PRIORITY of |
684 * real network or BSD sockets. | 684 * real network or BSD sockets. On Linux, the socket priority can be |
685 * | 685 * set to a value in the range [0..6], unless the user process has the |
686 * \param priority The socket priority (in the range 0..6) | 686 * CAP_NET_ADMIN capability (see the man page for socket). ns-3 allows |
| 687 * users to set the socket priority to any 8-bit non-negative value, |
| 688 * which is equivalent to assuming that the CAP_NET_ADMIN capability is set. |
| 689 * |
| 690 * \param priority The socket priority |
687 */ | 691 */ |
688 void SetPriority (uint8_t priority); | 692 void SetPriority (uint8_t priority); |
689 | 693 |
690 /** | 694 /** |
691 * \brief Query the priority value of this socket | 695 * \brief Query the priority value of this socket |
692 * | 696 * |
693 * This method corresponds to using getsockopt () SO_PRIORITY of real network | 697 * This method corresponds to using getsockopt () SO_PRIORITY of real network |
694 * or BSD sockets. | 698 * or BSD sockets. |
695 * | 699 * |
696 * \return The priority value | 700 * \return The priority value |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 | 1391 |
1388 // inherited function, no need to doc. | 1392 // inherited function, no need to doc. |
1389 virtual void Print (std::ostream &os) const; | 1393 virtual void Print (std::ostream &os) const; |
1390 private: | 1394 private: |
1391 uint8_t m_ipv6Tclass; //!< the Tclass carried by the tag | 1395 uint8_t m_ipv6Tclass; //!< the Tclass carried by the tag |
1392 }; | 1396 }; |
1393 | 1397 |
1394 } // namespace ns3 | 1398 } // namespace ns3 |
1395 | 1399 |
1396 #endif /* NS3_SOCKET_H */ | 1400 #endif /* NS3_SOCKET_H */ |
LEFT | RIGHT |