Trigger Mode Flow - Texas Instruments SimpleLink Wi-Fi CC3120 Programmer's Manual

Internet of things network processor
Hide thumbs Also See for SimpleLink Wi-Fi CC3120:
Table of Contents

Advertisement

www.ti.com
asynchronous event SL_SOCKET_TRIGGER_EVENT_SELECT.
Detecting select events should notify the main task trigger event of arrival, call select again.
Figure 6-3
describes a general flow of using trigger mode for accept on a server socket.
An example of select trigger event handle:
void
SimpleLinkSocketTriggerEventHandler(SlSockTriggerEvent_t
{
switch
(pSlTriggerEvent ->Id)
{
case
SL_SOCKET_TRIGGER_EVENT_SELECT:
{
//Notify main task trigger event arrive, wake up and call select again
break;
}
default:
break;
}
}
6.7.2.1
Trigger Mode for Accept
1. Open the TCP Server Socket and call sl_Select on the following socket.
_i16 Status,Sd,LocalSd;
_u16 nfds;
SlSockAddrIn_t
SlTimeval_t timeVal;
SlFdSet_t
rxSet;
SWRU455A – February 2017 – Revised March 2017
Submit Documentation Feedback
Figure 6-3. Trigger Mode Flow
LocalAddr,Addr;
Copyright © 2017, Texas Instruments Incorporated
Operation Modes
*pSlTriggerEvent)
Socket
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simplelink wi-fi cc3220Simplelink cc3120Simplelink cc3220

Table of Contents