Enumerations | Functions
Serval_Network.h File Reference

Network helping moduleThis module provides some help functions to the stack with respect to IP and lower layers. More...

#include <Serval_Types.h>
#include <PIp.h>
+ Include dependency graph for Serval_Network.h:
+ This graph shows which files directly or indirectly include this file:

Enumerations

enum  Network_Event_T
 

Functions

retcode_t Ip_convertStringToAddr (const char *ipStr_ptr, Ip_Address_T *ipAddr_ptr)
 

Enumeration Type Documentation

This enum can be used to identify a network event.

This means the network events which are supported and identifiable.

Enumerator
NETWORK_IP_BINDING_MODIFIED 

Network event if a current IP binding is changed. This event should also posted when the device finishes its IP initialization and sets a valid IP address the first time.

NETWORK_IP_BINDING_DONE 

Network event if a IP binding is done

NETWORK_IP_BINDING_FAILURE 

Network event if a IP binding operation fails

NETWORK_MAC_BINDING_FAILURE 

Network event if a MAC binding operation fails

Function Documentation

retcode_t Ip_convertStringToAddr ( const char *  ipStr_ptr,
Ip_Address_T ipAddr_ptr 
)

Converts a given String to an IP address. Conversion stops at the first invalid character (neither separator nor number)

Parameters
[in]ipStr_ptrIP address as a String which should be converted. It has to be a valid pointer.
[out]ipAddr_ptrSaves the converted address. It has to be a valid pointer.
Returns
RC_OK if the conversion is successful, RC_IP_INVALID_ADDRESS otherwise.

+ Here is the caller graph for this function:


This documentation file has been automatically generated on Fri Oct 4 2019 03:47:20 by doxygen 1.8.8