multiplayer pong game for LPC 1768
Dependencies: mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt
network.h@37:8a0fc62a0512, 2020-11-29 (annotated)
- Committer:
- vsoltan
- Date:
- Sun Nov 29 22:40:24 2020 +0000
- Revision:
- 37:8a0fc62a0512
- Parent:
- 36:46bb54b669bc
finalizing code before writing report
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vsoltan | 15:9d90f68e53da | 1 | |
vsoltan | 15:9d90f68e53da | 2 | #ifndef NETWORK_H |
vsoltan | 15:9d90f68e53da | 3 | #define NETWORK_H |
vsoltan | 11:d0a105f6743f | 4 | |
vsoltan | 11:d0a105f6743f | 5 | #include "EthernetInterface.h" |
vsoltan | 15:9d90f68e53da | 6 | #include "mbed.h" |
vsoltan | 11:d0a105f6743f | 7 | |
vsoltan | 11:d0a105f6743f | 8 | #define AWS_IP "3.128.153.185" |
vsoltan | 11:d0a105f6743f | 9 | #define PORT 3030 |
vsoltan | 11:d0a105f6743f | 10 | |
vsoltan | 36:46bb54b669bc | 11 | #define CONNECTION_REQ "{\"type\": \"connected\"}" |
vsoltan | 36:46bb54b669bc | 12 | #define LOBBY_HASH "jaredyeagersflipflop" |
vsoltan | 36:46bb54b669bc | 13 | |
vsoltan | 11:d0a105f6743f | 14 | void initEthernet(EthernetInterface *eth, UDPSocket *sock, Endpoint *nist); |
vsoltan | 11:d0a105f6743f | 15 | void cleanupEthernet(EthernetInterface *eth, UDPSocket *sock); |
vsoltan | 15:9d90f68e53da | 16 | |
vsoltan | 15:9d90f68e53da | 17 | #endif // NETWORK_H |