IPv6 raw socket.
More...
#include <ipv6-raw-socket-impl.h>
List of all members.
Detailed Description
IPv6 raw socket.
Member Function Documentation
virtual int ns3::Ipv6RawSocketImpl::Bind |
( |
const Address & |
address |
) |
[virtual] |
Bind the socket to address.
- Parameters:
-
| address | bind to this address |
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::Bind |
( |
|
) |
[virtual] |
Bind socket.
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::Close |
( |
|
) |
[virtual] |
Close the socket.
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::Connect |
( |
const Address & |
address |
) |
[virtual] |
Connect to address.
- Parameters:
-
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
Forward up to receive method.
- Parameters:
-
| p | packet |
| hdr | IPv6 header |
| device | device |
- Returns:
- true if forwarded, false otherwise
virtual enum Socket::SocketErrno ns3::Ipv6RawSocketImpl::GetErrno |
( |
|
) |
const [virtual] |
Get last error number.
- Returns:
- error number
Implements ns3::Socket.
virtual Ptr<Node> ns3::Ipv6RawSocketImpl::GetNode |
( |
|
) |
const [virtual] |
Get node.
- Returns:
- node associated with this raw socket.
Implements ns3::Socket.
virtual uint32_t ns3::Ipv6RawSocketImpl::GetRxAvailable |
( |
|
) |
const [virtual] |
Get RX size available.
- Returns:
- RX size
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::GetSockName |
( |
Address & |
address |
) |
const [virtual] |
Get socket address.
- Parameters:
-
| address | socket address if method success |
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual uint32_t ns3::Ipv6RawSocketImpl::GetTxAvailable |
( |
|
) |
const [virtual] |
Get TX size available.
- Returns:
- TX size
Implements ns3::Socket.
static TypeId ns3::Ipv6RawSocketImpl::GetTypeId |
( |
void |
|
) |
[static] |
Get the type ID of this class.
This method returns the TypeId associated to ns3::Ipv6RawSocketImpl.
- Returns:
- type ID
This object is accessible through the following paths with Config::Set and Config::Connect:
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::Ipv6RawSocketImpl
-
/NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::Ipv6RawSocketImpl
Attributes defined for this type:
-
Protocol: Protocol number to match.
-
IcmpFilter: Any ICMPv6 header whose type field matches a bit in this filter is dropped.
No TraceSources defined for this type.
Reimplemented from ns3::Object.
virtual int ns3::Ipv6RawSocketImpl::Listen |
( |
|
) |
[virtual] |
Listen.
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual Ptr<Packet> ns3::Ipv6RawSocketImpl::Recv |
( |
uint32_t |
maxSize, |
|
|
uint32_t |
flags | |
|
) |
| | [virtual] |
Receive packet.
- Parameters:
-
| maxSize | maximum size |
| flags | additionnal flags |
- Returns:
- packet received
Implements ns3::Socket.
virtual Ptr<Packet> ns3::Ipv6RawSocketImpl::RecvFrom |
( |
uint32_t |
maxSize, |
|
|
uint32_t |
flags, |
|
|
Address & |
fromAddress | |
|
) |
| | [virtual] |
Receive packet.
- Parameters:
-
| maxSize | maximum size |
| flags | additionnal flags |
| fromAddress | source address |
- Returns:
- packet received
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::Send |
( |
Ptr< Packet > |
p, |
|
|
uint32_t |
flags | |
|
) |
| | [virtual] |
Send a packet.
- Parameters:
-
| p | packet to send |
| flags | additionnal flags |
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::SendTo |
( |
Ptr< Packet > |
p, |
|
|
uint32_t |
flags, |
|
|
const Address & |
toAddress | |
|
) |
| | [virtual] |
Send a packet.
- Parameters:
-
| p | packet to send |
| flags | additionnal flags |
| toAddress | destination address |
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
void ns3::Ipv6RawSocketImpl::SetNode |
( |
Ptr< Node > |
node |
) |
|
Set the node.
- Parameters:
-
void ns3::Ipv6RawSocketImpl::SetProtocol |
( |
uint16_t |
protocol |
) |
|
Set protocol field.
- Parameters:
-
virtual int ns3::Ipv6RawSocketImpl::ShutdownRecv |
( |
|
) |
[virtual] |
Shutdown receive capability.
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
virtual int ns3::Ipv6RawSocketImpl::ShutdownSend |
( |
|
) |
[virtual] |
Shutdown send capability.
- Returns:
- 0 if success, -1 otherwise
Implements ns3::Socket.
The documentation for this class was generated from the following files:
- src/internet-stack/ipv6-raw-socket-impl.h
- doc/introspected-doxygen.h