void SimpleLinkSockEventHandler(SlSockEvent_t *pSock)
{
if(pSock == NULL)
{
UART_PRINT("Null pointer\n\r");
LOOP_FOREVER();
}
//
// This application doesn't work w/ socket - Events are not expected
//
switch( pSock->Event )
{
case SL_SOCKET_TX_FAILED_EVENT:
switch( pSock->EventData.status )
{
case SL_ECLOSE:
UART_PRINT("[SOCK ERROR] - close socket (%d) operation "
"failed to transmit all queued packets\n\n",
pSock->EventData.sd);
break;
default:
UART_PRINT("[SOCK ERROR] - TX FAILED : socket %d , "
"reason (%d) \n\n",
pSock->EventData.sd, pSock->EventData.status);
}
break;
default:
UART_PRINT("[SOCK EVENT] - Unexpected Event [%x0x]\n\n", \
pSock->Event);
}
}这个才是例程源码,有错误Description Resource Path Location Type
#137 struct "<unnamed>" has no field "EventData" main.c /3200ExositeDemo line 774 C/C++ Problem
|