wavelength 1.0.0
Loading...
Searching...
No Matches
InetConnectResultMsg Class Reference

Message that reports the outcome of NetInet::Connect(). More...

#include <inetconnectresultmsg.h>

Inheritance diagram for InetConnectResultMsg:
Collaboration diagram for InetConnectResultMsg:

Public Types

enum  Result {
  kResultSuccess = 0 , kResultOpenFailed = -100 , kResultConfigNotFound = -99 , kResultConfigWrongConsole = -98 ,
  kResultConfigError = -97 , kResultNoCombination = -96 , kResultHardwareError = -95 , kResultTimeout = -94 ,
  kResultFailed = -93
}
 Values of mResult. More...

Public Member Functions

 InetConnectResultMsg (int nResult)
 Construct a result with no error text.
void * operator new (size_t nSize)
 Allocate a message, billed to the class name.
void operator delete (void *pBlock)
 Release a message.
Message * Clone () override
 Produce a heap copy of this message.
int Type () override
 Report this message's registered identity.
const char * GetName () const override
 Report this message's class name.
void PrintExtra (PrnStream &stream) const override
 Write the result, and the error text when it is not empty.
int GetResult () const
Public Member Functions inherited from Message
virtual ~Message ()
 Vtable slot 1.
virtual void saveGuts (BinStream &stream) const
 Write this message's payload to a stream.
virtual void restoreGuts (BinStream &stream)
 Read this message's payload from a stream.
virtual ~Message ()
virtual void Unused1 ()
 Not called by the control.

Additional Inherited Members

Static Public Member Functions inherited from Message
static Message * NewMessage (int nType)
 Produce a message of the identified class through the factory list.

Detailed Description

Message that reports the outcome of NetInet::Connect().

The RTTI records the class as deriving from Message. The vtable is at 0x003d6438. The members Clone(), Type(), and GetName() are inline.

Member Enumeration Documentation

◆ Result

Values of mResult.

Enumerator
kResultSuccess 

The connection is up.

kResultOpenFailed 

The configuration could not be opened.

kResultConfigNotFound 

The configuration is missing from the card.

kResultConfigWrongConsole 

The configuration belongs to another console.

kResultConfigError 

The configuration cannot be read.

kResultNoCombination 

The list has no combination of that number.

kResultHardwareError 

The network adaptor failed.

kResultTimeout 

The connection timed out.

kResultFailed 

The interface reported a failure.

Constructor & Destructor Documentation

◆ InetConnectResultMsg()

InetConnectResultMsg::InetConnectResultMsg ( int nResult)
inlineexplicit

Construct a result with no error text.

Inline.

Parameters
nResultOne of Result, or another failure.

Member Function Documentation

◆ operator new()

void * InetConnectResultMsg::operator new ( size_t nSize)
inline

Allocate a message, billed to the class name.

Parameters
nSizeThe object size the compiler supplies.
Returns
The block.

◆ operator delete()

void InetConnectResultMsg::operator delete ( void * pBlock)
inline

Release a message.

Parameters
pBlockThe block.

◆ Clone()

Message * InetConnectResultMsg::Clone ( )
inlineoverridevirtual

Produce a heap copy of this message.

Returns
The copy.

Implements Message.

◆ Type()

int InetConnectResultMsg::Type ( )
inlineoverridevirtual

Report this message's registered identity.

Returns
g_nInetConnectResultMsgType.

Implements Message.

◆ GetName()

const char * InetConnectResultMsg::GetName ( ) const
inlineoverridevirtual

Report this message's class name.

Returns
The literal InetConnectResultMsg.

Implements Message.

◆ PrintExtra()

void InetConnectResultMsg::PrintExtra ( PrnStream & stream) const
overridevirtual

Write the result, and the error text when it is not empty.

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

Reimplemented from Message.

◆ GetResult()

int InetConnectResultMsg::GetResult ( ) const
inline
Returns
The outcome, one of Result or another failure.

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