Net module
PacketInfo
Provides information about packets emitted from a socket.
PacketInfo
#include <icy/net/socket.h>Inherits:
IPacketInfo
Provides information about packets emitted from a socket. See SocketPacket.
Public Attributes
| Return | Name | Description |
|---|---|---|
Socket::Ptr | socket | The source socket. |
Address | peerAddress | The originating peer address. For TCP this will always be connected address. |
socket
Socket::Ptr socketThe source socket.
peerAddress
Address peerAddressThe originating peer address. For TCP this will always be connected address.
Public Methods
| Return | Name | Description |
|---|---|---|
PacketInfo inline | Constructs PacketInfo with the originating socket and peer address. | |
PacketInfo inline | Copy constructor. | |
std::unique_ptr< IPacketInfo > | clone virtual const inline | Returns a heap-allocated copy of this PacketInfo. |
PacketInfo
inline
inline PacketInfo(const Socket::Ptr & socket, const Address & peerAddress)Constructs PacketInfo with the originating socket and peer address.
Parameters
socketShared pointer to the socket that received the packet.peerAddressAddress of the remote peer that sent the packet.
PacketInfo
inline
inline PacketInfo(const PacketInfo & r)Copy constructor.
Parameters
rSource PacketInfo to copy from.
clone
virtual const inline
virtual inline std::unique_ptr< IPacketInfo > clone() constReturns a heap-allocated copy of this PacketInfo.
