DWC_GetInetStatus

Syntax

#include <dwc.h> 
DWCInetResult DWC_GetInetStatus(void);

Arguments

None.

Return Values

DWC_CONNECTINET_STATE_NOT_INITIALIZED Not initialized.
DWC_CONNECTINET_STATE_IDLE The connection has not started.
DWC_CONNECTINET_STATE_OPERATING Currently processing.
DWC_CONNECTINET_STATE_OPERATED Processing completed.
DWC_CONNECTINET_STATE_CONNECTED Connected to the internet.
DWC_CONNECTINET_STATE_DISCONNECTING Disconnecting from the internet.
DWC_CONNECTINET_STATE_DISCONNECTED Disconnected from the internet.
DWC_CONNECTINET_STATE_ERROR An error occurred.
DWC_CONNECTINET_STATE_FATAL_ERROR A fatal error occurred.

Description

Checks the Internet connection status.

If an error has occurred, get the error status using the DWC_GetLastErrorEx function. If necessary, display an error code along with an error message. See the programming guidelines for more information on error messages.

See Also

DWC_CheckInet DWC_ConnectInetAsync DWC_CheckInet DWC_ProcessInet DWC_CleanupInet

Revision History

For the change log prior to 5.1 PR2, click here.   


CONFIDENTIAL