|
INET Framework for OMNeT++/OMNEST
|
This class provides an interface that should be implemented by all sockets. More...
#include <ISocket.h>
Public Member Functions | |
| virtual | ~ISocket () |
| virtual int | getSocketId () const =0 |
| Returns the socket Id which is unique within the network node. More... | |
| virtual bool | belongsToSocket (cMessage *msg) const =0 |
| Returns true if the message belongs to this socket. More... | |
| virtual void | processMessage (cMessage *msg)=0 |
| Examines the message, takes ownership, and updates socket state. More... | |
| virtual void | send (Packet *packet)=0 |
| virtual void | close ()=0 |
| Close the socket. More... | |
| virtual void | destroy ()=0 |
| Notify the protocol that the owner of ISocket has destroyed the socket. More... | |
| virtual bool | isOpen () const =0 |
This class provides an interface that should be implemented by all sockets.
|
pure virtual |
Returns true if the message belongs to this socket.
Implemented in inet::TcpSocket, inet::SctpSocket, inet::UdpSocket, inet::TunSocket, inet::SocketBase, inet::L3Socket, inet::Ipv4Socket, and inet::Ipv6Socket.
Referenced by inet::VirtualTunnel::handleMessage().
|
pure virtual |
Close the socket.
Implemented in inet::INetworkSocket, inet::TcpSocket, inet::SctpSocket, inet::UdpSocket, inet::TunSocket, inet::L3Socket, inet::Ipv4Socket, inet::Ipv6Socket, and inet::SocketBase.
|
pure virtual |
Notify the protocol that the owner of ISocket has destroyed the socket.
Typically used when the owner of ISocket has crashed.
Implemented in inet::SctpSocket, inet::TcpSocket, inet::UdpSocket, inet::TunSocket, inet::L3Socket, inet::Ipv4Socket, inet::Ipv6Socket, and inet::SocketBase.
Referenced by inet::PingApp::handleCrashOperation().
|
pure virtual |
Returns the socket Id which is unique within the network node.
Implemented in inet::TcpSocket, inet::SctpSocket, inet::UdpSocket, inet::TunSocket, inet::L3Socket, inet::Ipv4Socket, inet::Ipv6Socket, and inet::SocketBase.
Referenced by inet::SocketMap::addSocket(), and inet::SocketMap::removeSocket().
|
pure virtual |
Implemented in inet::TcpSocket, inet::SctpSocket, inet::UdpSocket, inet::TunSocket, inet::L3Socket, inet::Ipv4Socket, inet::Ipv6Socket, and inet::SocketBase.
|
pure virtual |
Examines the message, takes ownership, and updates socket state.
Implemented in inet::TcpSocket, inet::SctpSocket, inet::UdpSocket, inet::Ieee8021qSocket, inet::TunSocket, inet::EthernetSocket, inet::Ieee8022LlcSocket, inet::L3Socket, inet::Ipv4Socket, and inet::Ipv6Socket.
Referenced by inet::VirtualTunnel::handleMessage(), and inet::Ldp::handleMessageWhenUp().
|
pure virtual |
Implemented in inet::SctpSocket, inet::TunSocket, inet::L3Socket, inet::Ipv4Socket, inet::Ipv6Socket, inet::SocketBase, inet::TcpSocket, and inet::UdpSocket.
Referenced by inet::VirtualTunnel::handleMessage(), and inet::PingApp::sendPingRequest().