resonance 1.0.1
Loading...
Searching...
No Matches
PSJoinRequestPacket Class Reference

Network packet the game sends between game systems. More...

#include <psjoinrequestpacket.h>

Inheritance diagram for PSJoinRequestPacket:
Collaboration diagram for PSJoinRequestPacket:

Public Member Functions

 PSJoinRequestPacket ()
 Construct a packet with a fresh appearance.
virtual Message * Clone ()
 Produce a heap copy of this packet.
virtual int Type ()
 Report this packet's registered identity.
virtual const char * GetName () const
 Report this packet's class name.
virtual void saveGuts (OBStream &stream) const
 Write the packet to a stream.
virtual void restoreGuts (IBStream &stream)
 Read the packet back from a stream.
virtual void PrintExtra (std::ostream &stream) const
 Write the appearance to a diagnostic stream through FreqAppearance::Print().
Public Member Functions inherited from ToHostPacket
 ToHostPacket ()
 Route the packet with the pair 0 and 0.
Public Member Functions inherited from Message
void * operator new (size_t nSize)
 Allocate a message from the tagged heap under the tag MSG.
void operator delete (void *pBlock)
 Release a message to the tagged heap under the tag MSG.
virtual ~Message ()
 Vtable slot 1.
std::ostream & Print (std::ostream &stream) const
 Write this message to a diagnostic stream as {GetName() PrintExtra()}.

Static Public Member Functions

static Message * New ()
 Produce a packet with a fresh appearance on the heap.
Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Additional Inherited Members

Protected Member Functions inherited from Packet
 Packet (int nDestination, int nDestinationSystem)
 Set the two routing words and mark the remaining two as unset.
Protected Attributes inherited from Packet
int mDestination
int mDestinationSystem
int mClientId
 The client the packet concerns, or -1 until set.
int mTargetClientId
 A second client identifier, -1 until set.

Detailed Description

Network packet the game sends between game systems.

Its RTTI descriptor is at 0x008ef0b0. It has ToHostPacket as its one base. The object is 0x28 bytes and its vtable is at 0x008148d8. The payload comes from the copy constructor at 0x003f2dc0. Clone() delegates to it, and the payload accounts for the allocation exactly. The four words Packet provides are declared there rather than here.

Its vtable has eight entries and a zero terminator at index 8. Slots 6 and 7 are its own overrides rather than the inherited Packet ones at 0x003f1de8 and 0x003f1ea0. Neither override calls the base. Each repeats the four-word transfer inline and adds the appearance.

The destructor at 0x003eee18 is compiler-generated and has no declaration here.

Constructor & Destructor Documentation

◆ PSJoinRequestPacket()

PSJoinRequestPacket::PSJoinRequestPacket ( )

Construct a packet with a fresh appearance.

The image lists no caller for the out-of-line body. New() expands the same stores in place.

Ghidra address:
NTSC-U/C: 0x003eef50
Ghidra address:
PAL: 0x004274a0

Member Function Documentation

◆ New()

Message * PSJoinRequestPacket::New ( )
static

Produce a packet with a fresh appearance on the heap.

The registry the translation unit at 0x003ed2e0 builds stores this address against g_nPSJoinRequestPacketType.

Returns
The packet.
Ghidra address:
NTSC-U/C: 0x003e4a98
Ghidra address:
PAL: 0x0041ccc8

◆ Clone()

virtual Message * PSJoinRequestPacket::Clone ( )
virtual

Produce a heap copy of this packet.

Returns
The copy.
Ghidra address:
NTSC-U/C: 0x003eeeb8
Ghidra address:
PAL: 0x00427408

Implements Message.

◆ Type()

virtual int PSJoinRequestPacket::Type ( )
virtual

Report this packet's registered identity.

Returns
g_nPSJoinRequestPacketType.
Ghidra address:
NTSC-U/C: 0x003eef30
Ghidra address:
PAL: 0x00427480

Implements Message.

◆ GetName()

virtual const char * PSJoinRequestPacket::GetName ( ) const
virtual

Report this packet's class name.

Returns
The literal PSJoinRequestPacket.
Ghidra address:
NTSC-U/C: 0x003eef40
Ghidra address:
PAL: 0x00427490

Implements Message.

◆ saveGuts()

virtual void PSJoinRequestPacket::saveGuts ( OBStream & stream) const
virtual

Write the packet to a stream.

Slot 6. The word Packet stores at +0x0c is written twice, once in the four-word prefix and again after the appearance.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x003e5538
Ghidra address:
PAL: 0x0041d7e0

Reimplemented from Packet.

◆ restoreGuts()

virtual void PSJoinRequestPacket::restoreGuts ( IBStream & stream)
virtual

Read the packet back from a stream.

Slot 7. Mirrors saveGuts(), including the repeated transfer of +0x0c.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x003e5638
Ghidra address:
PAL: 0x0041d8e0

Reimplemented from Packet.

◆ PrintExtra()

virtual void PSJoinRequestPacket::PrintExtra ( std::ostream & stream) const
virtual

Write the appearance to a diagnostic stream through FreqAppearance::Print().

Slot 5.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x003f1f38
Ghidra address:
PAL: 0x0042a480

Reimplemented from Message.


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