wavelength 1.0.0
Loading...
Searching...
No Matches
rawip.h
Go to the documentation of this file.
1#pragma once
2
3#include <inet.h>
4
6
14class RawIp {
15public:
29 static int Receive(
30 int cid, unsigned short *port, sceInetAddress *address, bool *received, const char *name);
31
44 static int
45 Send(int cid, unsigned short port, const sceInetAddress *address, bool *sent, const char *name);
46
47private:
57 static unsigned short Checksum(const void *data, int size);
58
60 static IcmpHeader sReceivedIcmp;
61
63 static IcmpHeader sSentIcmp;
64
66 static IpHeader sReceivedIp;
67
69 static IcmpPacket sReceivedPacket;
70
72 static IpHeader sSentIp;
73
75 static IcmpPacket sSentPacket;
76};
Datagrams over a raw IP connection.
Definition rawip.h:14
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,...
static int Send(int cid, unsigned short port, const sceInetAddress *address, bool *sent, const char *name)
Send one datagram as an echo request.
An ICMP echo header.
Definition icmppacket.h:18
An IPv4 packet with only an ICMP echo header.
Definition icmppacket.h:27
An IPv4 header.
Definition icmppacket.h:4