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-04
Revision:
37:793b39683406
Parent:
22:914b970356f0
Child:
42:222a4f45f916

File content as of revision 37:793b39683406:

#pragma once
#include "mbed.h"


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;