Morse Micro IoT SDK  2.10.4
mmping_args Struct Reference

Detailed Description

Ping request arguments data structure.

For forward compatibility this structure should be initialized using MMPING_ARGS_DEFAULT. For example:

#define MMPING_ARGS_DEFAULT
Initializer for mmping_args.
Definition: mmping.h:96
Ping request arguments data structure.
Definition: mmping.h:78

Definition at line 77 of file mmping.h.

#include <mmping.h>

Data Fields

char ping_src [MMPING_IPADDR_MAXLEN]
 String representation of the local IP address. More...
 
char ping_target [MMPING_IPADDR_MAXLEN]
 String representation of the IP address of the ping target. More...
 
uint32_t ping_interval_ms
 The time interval between ping requests (in milliseconds) More...
 
uint32_t ping_count
 This specifies the number of ping requests to send before terminating the session. More...
 
uint32_t ping_size
 Specifies the data packet size in bytes excluding 8 bytes ICMP header. More...
 

Field Documentation

◆ ping_count

uint32_t mmping_args::ping_count

This specifies the number of ping requests to send before terminating the session.

If this is zero or exceeds MMPING_MAX_COUNT then it it will be set to MMPING_MAX_COUNT.

Definition at line 90 of file mmping.h.

◆ ping_interval_ms

uint32_t mmping_args::ping_interval_ms

The time interval between ping requests (in milliseconds)

Definition at line 84 of file mmping.h.

◆ ping_size

uint32_t mmping_args::ping_size

Specifies the data packet size in bytes excluding 8 bytes ICMP header.

Definition at line 92 of file mmping.h.

◆ ping_src

char mmping_args::ping_src[MMPING_IPADDR_MAXLEN]

String representation of the local IP address.

Definition at line 80 of file mmping.h.

◆ ping_target

char mmping_args::ping_target[MMPING_IPADDR_MAXLEN]

String representation of the IP address of the ping target.

Definition at line 82 of file mmping.h.


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