blob: a8f2d1d42e30d14f116623a9643c4cb9b84d5d93 [file] [log] [blame]
Brian Silverman66f079a2013-08-26 16:24:30 -07001#ifndef AOS_COMMON_NETWORK_PORT_H_
2#define AOS_COMMON_NETWORK_PORT_H_
3
4#include "aos/aos_stdint.h"
5
6namespace aos {
7
8// Constants representing the various ports used for communications and some
9// documentation about what each is used for.
10enum class NetworkPort : uint16_t {
11 // UDP socket sending motor values from the atom to the crio.
12 kMotors = 9710,
13 // UDP socket forwarding drivers station packets from the crio to the atom.
14 kDS = 9711,
15 // UDP socket sending sensor values from the crio to the atom.
16 kSensors = 9712,
17 // TCP socket(s) (automatically reconnects) sending logs from the crio to the
18 // atom.
19 kLogs = 9713,
20 // HTTP server that sends out camera feeds in mjpg format.
21 // Should not be changed because this number shows up elsewhere too.
22 kCameraStreamer = 9714,
23};
24
25// Constants representing the various devices that talk on the network and the
26// last segment of their IP addresses.
27enum class NetworkAddress : uint8_t {
28 // The computer that the cRIO talks to.
29 kAtom = 179,
30 kCRIO = 2,
31};
32
33} // namespace aos
34
35#endif // AOS_COMMON_NETWORK_PORT_H_