A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ns.h Source File

ns.h

00001 #include <stdbool.h>
00002 
00003 extern bool NsTraceRecvSol;
00004 extern bool NsTraceRecvAdv;
00005 extern bool NsTraceSendSol;
00006 
00007 extern char NsAddressToResolve[];
00008 extern bool NsResolveRequestFlag;
00009 
00010 extern int  NsHandleReceivedAdvertisement(void (*traceback)(void), void* pPacket, int* pSize);
00011 extern int  NsHandleReceivedSolicitation (void (*traceback)(void), uint8_t* pType, uint8_t* pCode, void* pPacketRx, int sizeRx, void* pPacketTx, int* pSizeTx);
00012 extern int  NsGetWaitingSolicitation     (void* pPacket, int* pSize, uint8_t* pType, uint8_t* pCode);