wavelength 1.0.0
Loading...
Searching...
No Matches
NetInet Class Referenceabstract

Network connection of the console. More...

#include <netinet.h>

Inheritance diagram for NetInet:

Public Types

enum  ConnectionType { kConnectionSlow = 1 , kConnectionFast = 2 , kConnectionOffline = 3 }
 Values GetConnectionType() reports. More...

Public Member Functions

virtual ~NetInet ()
 Vtable slot 1.
virtual void LaunchConfigTool ()=0
 Vtable slot 2.
virtual void RequestConfigs (MsgSink *pSink)=0
 Vtable slot 3.
virtual void Connect (MsgSink *pSink, int nConfig)=0
 Vtable slot 4.
virtual void Disconnect (MsgSink *pSink)=0
 Vtable slot 5.
virtual void LookupHost (MsgSink *pSink, const char *pszHost)=0
 Vtable slot 6.
virtual void ClearPending ()=0
 Vtable slot 7.
virtual void CheckConnection (MsgSink *pSink)=0
 Vtable slot 8.
virtual int GetConnectionType ()=0
 Vtable slot 9.
virtual void RequestPowerOff ()
 Vtable slot 10, and slot 12 in the European release.

Detailed Description

Network connection of the console.

The RTTI includes the class name, and InetImpl derives from it. The members report their results to a receiver as messages such as InetConfigsResultMsg and InetConnectResultMsg. The vtable of InetImpl at 0x003d43f0 gives the order of the members. The member names other than GetConnectionType() are inferred.

Member Enumeration Documentation

◆ ConnectionType

Values GetConnectionType() reports.

Enumerator
kConnectionSlow 

A modem, which the game gives more time per packet.

kConnectionFast 

An Ethernet adaptor.

kConnectionOffline 

No interface is up.

Constructor & Destructor Documentation

◆ ~NetInet()

virtual NetInet::~NetInet ( )
inlinevirtual

Vtable slot 1.

Release the connection.

Inline.

Ghidra address:
NTSC-U/C: 0x003974d0
Ghidra address:
PAL: 0x00405d48

Member Function Documentation

◆ LaunchConfigTool()

virtual void NetInet::LaunchConfigTool ( )
pure virtual

Vtable slot 2.

Start the program that creates a network configuration.

Implemented in InetImpl.

◆ RequestConfigs()

virtual void NetInet::RequestConfigs ( MsgSink * pSink)
pure virtual

Vtable slot 3.

Start searching the memory cards for the network configurations.

The sink later receives an InetConfigsResultMsg. A search already running is not restarted.

Parameters
pSinkThe receiver of the result.

Implemented in InetImpl.

◆ Connect()

virtual void NetInet::Connect ( MsgSink * pSink,
int nConfig )
pure virtual

Vtable slot 4.

Start connecting with a network configuration.

Parameters
pSinkThe receiver of the InetConnectStatusMsg and InetConnectResultMsg.
nConfigThe identifier of the configuration.

Implemented in InetImpl.

◆ Disconnect()

virtual void NetInet::Disconnect ( MsgSink * pSink)
pure virtual

Vtable slot 5.

Take the interface down once no connection is starting.

Parameters
pSinkThe receiver of the InetDisconnectResultMsg.

Implemented in InetImpl.

◆ LookupHost()

virtual void NetInet::LookupHost ( MsgSink * pSink,
const char * pszHost )
pure virtual

Vtable slot 6.

Start looking up the address of a host.

Parameters
pSinkThe receiver of the InetDNSLookupResultMsg.
pszHostThe host name.

Implemented in InetImpl.

◆ ClearPending()

virtual void NetInet::ClearPending ( )
pure virtual

Vtable slot 7.

Forget the receiver of the pending lookup.

Implemented in InetImpl.

◆ CheckConnection()

virtual void NetInet::CheckConnection ( MsgSink * pSink)
pure virtual

Vtable slot 8.

Check whether the connection still works.

Parameters
pSinkThe receiver of the InetCheckConnectionResultMsg.

Implemented in InetImpl.

◆ GetConnectionType()

virtual int NetInet::GetConnectionType ( )
pure virtual

Vtable slot 9.

Report the kind of connection.

Returns
One of ConnectionType.

Implemented in InetImpl.

◆ RequestPowerOff()

virtual void NetInet::RequestPowerOff ( )
inlinevirtual

Vtable slot 10, and slot 12 in the European release.

Turn the console off at the next poll.

The default does nothing.

Ghidra address:
NTSC-U/C: 0x00397500
Ghidra address:
PAL: 0x00405d88

Reimplemented in InetImpl.


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