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

Network address a packet transport serialises: three strings and one word. More...

#include <transportaddress.h>

Public Member Functions

 TransportAddress (const HxStr &host, const HxStr &address, const HxStr &service, int nPort)
 Construct from copies of the three strings and the word.
virtual ~TransportAddress ()
 Slot 1.
virtual void Save (OBStream &stream)
 Write the three strings through SaveHxStr() and then the word, as four bytes.
virtual void Load (IBStream &stream)
 Read back what Save() writes, through LoadHxStr() and a four-byte read.
HxStr GetHost ()
 Report a copy of the first string.
HxStr GetAddress ()
 Report a copy of the second string.
HxStr GetService ()
 Report a copy of the third string.

Detailed Description

Network address a packet transport serialises: three strings and one word.

Its RTTI descriptor is at 0x0086f6e8. It has no base. The three strings come first, then the word, then the vptr at +0x1c (the position of a vptr in a class with no base). Its table at 0x00814e10 has four entries (the type function at 0x003f4330, the destructor, Save(), and Load()).

No routine of the class has a caller in the image, and no string names a field. The member titles are inferred from the class name and from the options labels Net IP Address and Net Port (an address paired with a port number).

Constructor & Destructor Documentation

◆ TransportAddress()

TransportAddress::TransportAddress ( const HxStr & host,
const HxStr & address,
const HxStr & service,
int nPort )

Construct from copies of the three strings and the word.

Parameters
hostThe first string.
addressThe second string.
serviceThe third string.
nPortThe word.
Ghidra address:
NTSC-U/C: 0x003f43a8
Ghidra address:
PAL: 0x0042c990

◆ ~TransportAddress()

virtual TransportAddress::~TransportAddress ( )
virtual

Slot 1.

The body frees the three string buffers, in reverse order, and nothing else.

Ghidra address:
NTSC-U/C: 0x003f4478
Ghidra address:
PAL: 0x0042ca80

Member Function Documentation

◆ Save()

virtual void TransportAddress::Save ( OBStream & stream)
virtual

Write the three strings through SaveHxStr() and then the word, as four bytes.

Slot 2. Each write goes to the stream the previous write returned.

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

◆ Load()

virtual void TransportAddress::Load ( IBStream & stream)
virtual

Read back what Save() writes, through LoadHxStr() and a four-byte read.

Slot 3.

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

◆ GetHost()

HxStr TransportAddress::GetHost ( )

Report a copy of the first string.

Returns
The first string.
Ghidra address:
NTSC-U/C: 0x003f4500
Ghidra address:
PAL: 0x0042cb38

◆ GetAddress()

HxStr TransportAddress::GetAddress ( )

Report a copy of the second string.

Returns
The second string.
Ghidra address:
NTSC-U/C: 0x003f4528
Ghidra address:
PAL: 0x0042cb60

◆ GetService()

HxStr TransportAddress::GetService ( )

Report a copy of the third string.

Returns
The third string.
Ghidra address:
NTSC-U/C: 0x003f4558
Ghidra address:
PAL: 0x0042cb90

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