multiplayer pong game for LPC 1768
Dependencies: mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt
network.h@36:46bb54b669bc, 2020-11-28 (annotated)
- Committer:
- vsoltan
- Date:
- Sat Nov 28 04:21:08 2020 +0000
- Revision:
- 36:46bb54b669bc
- Parent:
- 15:9d90f68e53da
starting to refactor
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 |