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

net.h

Committer:
andrewboyson
Date:
2017-10-15
Revision:
42:222a4f45f916
Parent:
37:793b39683406
Child:
43:bc028d5a6424

File content as of revision 42:222a4f45f916:

#pragma once
#include "mbed.h"

extern bool NetPreferIp4Polled;

extern bool NetTraceBack;
extern bool NetTraceForward;

extern  int16_t NetToHost16(int16_t n);
extern  int32_t NetToHost32(int32_t n);
extern  int64_t NetToHost64(int64_t n);
extern uint16_t NetCheckSum(int count, void* pData);
extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);

extern int NetInit(char* name);
extern int NetMain();

extern char* NetName;