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