INET Framework for OMNeT++/OMNEST
inet::ISocket Class Referenceabstract

This class provides an interface that should be implemented by all sockets. More...

#include <ISocket.h>

Inheritance diagram for inet::ISocket:
inet::INetworkSocket inet::SctpSocket inet::SocketBase inet::TcpSocket inet::TunSocket inet::UdpSocket inet::Ipv4Socket inet::Ipv6Socket inet::L3Socket inet::EthernetSocket inet::Ieee8021qSocket inet::Ieee8022LlcSocket

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
 

Detailed Description

This class provides an interface that should be implemented by all sockets.

Constructor & Destructor Documentation

◆ ~ISocket()

virtual inet::ISocket::~ISocket ( )
inlinevirtual
21 {}

Member Function Documentation

◆ belongsToSocket()

virtual bool inet::ISocket::belongsToSocket ( cMessage *  msg) const
pure virtual

◆ close()

virtual void inet::ISocket::close ( )
pure virtual

◆ destroy()

virtual void inet::ISocket::destroy ( )
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().

◆ getSocketId()

virtual int inet::ISocket::getSocketId ( ) const
pure virtual

◆ isOpen()

virtual bool inet::ISocket::isOpen ( ) const
pure virtual

◆ processMessage()

virtual void inet::ISocket::processMessage ( cMessage *  msg)
pure virtual

◆ send()


The documentation for this class was generated from the following file: