Home
Net module

PacketInfo

Provides information about packets emitted from a socket.

PacketInfo

#include <icy/net/socket.h>
struct PacketInfo

Defined in src/net/include/icy/net/socket.h:155

Inherits: IPacketInfo

Provides information about packets emitted from a socket. See SocketPacket.

List of all members

NameKindOwner
socketvariableDeclared here
peerAddressvariableDeclared here
PacketInfofunctionDeclared here
PacketInfofunctionDeclared here
clonefunctionDeclared here
~PacketInfofunctionDeclared here
IPacketInfofunctionInherited from IPacketInfo
~IPacketInfofunctionInherited from IPacketInfo
clonefunctionInherited from IPacketInfo

Inherited from IPacketInfo

KindNameDescription
functionIPacketInfoDefaulted constructor.
function~IPacketInfo virtualDefaulted destructor.
functionclone virtual constReturns a heap-allocated deep copy of this info object.

Public Attributes

ReturnNameDescription
Socket::PtrsocketThe source socket.
AddresspeerAddressThe originating peer address. For TCP this will always be connected address.

socket

Socket::Ptr socket

Defined in src/net/include/icy/net/socket.h:158

The source socket.


peerAddress

Address peerAddress

Defined in src/net/include/icy/net/socket.h:162

The originating peer address. For TCP this will always be connected address.

Public Methods

ReturnNameDescription
PacketInfo inlineConstructs PacketInfo with the originating socket and peer address.
PacketInfo inlineCopy constructor.
std::unique_ptr< IPacketInfo >clone virtual const inlineReturns a heap-allocated copy of this PacketInfo.

PacketInfo

inline

inline PacketInfo(const Socket::Ptr & socket, const Address & peerAddress)

Defined in src/net/include/icy/net/socket.h:167

Constructs PacketInfo with the originating socket and peer address.

Parameters

  • socket Shared pointer to the socket that received the packet.

  • peerAddress Address of the remote peer that sent the packet.


PacketInfo

inline

inline PacketInfo(const PacketInfo & r)

Defined in src/net/include/icy/net/socket.h:175

Copy constructor.

Parameters


clone

virtual const inline

virtual inline std::unique_ptr< IPacketInfo > clone() const

Defined in src/net/include/icy/net/socket.h:182

Returns a heap-allocated copy of this PacketInfo.

Reimplements