Monero
Loading...
Searching...
No Matches
natpmp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NATPMP_PORT   (5351)
#define NATPMP_NOTIF_PORT   (5350)
#define NATPMP_NOTIF_ADDR   ("224.0.0.1")

Functions

int OpenAndConfNATPMPSockets (int *sockets)
int ReceiveNATPMPOrPCPPacket (int s, struct sockaddr *senderaddr, socklen_t *senderaddrlen, struct sockaddr_in6 *receiveraddr, unsigned char *msg_buff, size_t msg_buff_size)
void ProcessIncomingNATPMPPacket (int s, unsigned char *msg_buff, int len, struct sockaddr_in *senderaddr)
void SendNATPMPPublicAddressChangeNotification (int *sockets, int n_sockets)

Macro Definition Documentation

◆ NATPMP_NOTIF_ADDR

#define NATPMP_NOTIF_ADDR   ("224.0.0.1")

◆ NATPMP_NOTIF_PORT

#define NATPMP_NOTIF_PORT   (5350)

◆ NATPMP_PORT

#define NATPMP_PORT   (5351)

Function Documentation

◆ OpenAndConfNATPMPSockets()

int OpenAndConfNATPMPSockets ( int * sockets)

◆ ProcessIncomingNATPMPPacket()

void ProcessIncomingNATPMPPacket ( int s,
unsigned char * msg_buff,
int len,
struct sockaddr_in * senderaddr )

◆ ReceiveNATPMPOrPCPPacket()

int ReceiveNATPMPOrPCPPacket ( int s,
struct sockaddr * senderaddr,
socklen_t * senderaddrlen,
struct sockaddr_in6 * receiveraddr,
unsigned char * msg_buff,
size_t msg_buff_size )

◆ SendNATPMPPublicAddressChangeNotification()

void SendNATPMPPublicAddressChangeNotification ( int * sockets,
int n_sockets )