Morse Micro IoT SDK  2.9.7
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:95
Ping request arguments data structure.
Definition: mmping.h:77

Definition at line 76 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 89 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 83 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 91 of file mmping.h.

◆ ping_src

char mmping_args::ping_src[MMPING_IPADDR_MAXLEN]

String representation of the local IP address.

Definition at line 79 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 81 of file mmping.h.


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