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

Datagrams over a raw IP connection. More...

#include <rawip.h>

Static Public Member Functions

static int Receive (int cid, unsigned short *port, sceInetAddress *address, bool *received, const char *name)
 Receive datagrams until one of the module's echo replies arrives, an error occurs, or nothing is waiting.
static int Send (int cid, unsigned short port, const sceInetAddress *address, bool *sent, const char *name)
 Send one datagram as an echo request.

Detailed Description

Datagrams over a raw IP connection.

Each one is an ICMP echo whose identifier marks it as the module's and whose sequence number is the port of the datagram. The header is all a datagram transfers.

The module was built without RTTI. The name is inferred from the module's routines.

Member Function Documentation

◆ Receive()

int RawIp::Receive ( int cid,
unsigned short * port,
sceInetAddress * address,
bool * received,
const char * name )
static

Receive datagrams until one of the module's echo replies arrives, an error occurs, or nothing is waiting.

Parameters
cidConnection identifier.
portReceives the port of the datagram.
addressReceives the sender address.
receivedSet when a datagram arrived.
nameProtocol name for messages.
Returns
Zero, 1 when the receive failed, or 2 for a null argument.
Ghidra address:
NTSC-U/C: 0x00002dd8
Ghidra address:
PAL: 0x00002c90

◆ Send()

int RawIp::Send ( int cid,
unsigned short port,
const sceInetAddress * address,
bool * sent,
const char * name )
static

Send one datagram as an echo request.

Parameters
cidConnection identifier.
portPort of the datagram.
addressDestination address.
sentSet when the datagram was sent.
nameProtocol name for messages.
Returns
Zero, 1 when the send failed, or 2 for a null argument.
Ghidra address:
NTSC-U/C: 0x00003100
Ghidra address:
PAL: 0x00002fb4

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