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
action.c@151:bde6f7da1755, 2019-07-19 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri Jul 19 17:48:06 2019 +0000
- Revision:
- 151:bde6f7da1755
- Parent:
- 61:aad055f1b0d1
Removed private key and certificate from semihost storage as found to be unreliable (though secure) and moved it into flash storage (reliable, simple, but visible on mbed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdbool.h> |
andrewboyson | 61:aad055f1b0d1 | 2 | |
andrewboyson | 41:db727df5f98b | 3 | int ActionMakeFromDestAndTrace(int dest, bool trace) |
andrewboyson | 41:db727df5f98b | 4 | { |
andrewboyson | 41:db727df5f98b | 5 | if (trace) return dest | 0x8000; |
andrewboyson | 41:db727df5f98b | 6 | else return dest & 0x7FFF; |
andrewboyson | 41:db727df5f98b | 7 | } |
andrewboyson | 41:db727df5f98b | 8 | int ActionGetDestPart (int action) { return action & 0x7FFF; } |
andrewboyson | 41:db727df5f98b | 9 | bool ActionGetTracePart(int action) { return action & 0x8000; } |