Commit eb377588 authored by Jonathon Duerig's avatar Jonathon Duerig

Quick change to the command identifiers to explicitly number them.

parent 10fa9140
......@@ -48,39 +48,39 @@ extern char * optarg;
enum
{
EVENT_FORWARD_PATH = 0,
EVENT_BACKWARD_PATH
EVENT_BACKWARD_PATH = 1
};
// Enum of header types -- from-monitor (Commands)
enum
{
NEW_CONNECTION_COMMAND = 0,
TRAFFIC_MODEL_COMMAND,
CONNECTION_MODEL_COMMAND,
SENSOR_COMMAND,
CONNECT_COMMAND,
TRAFFIC_WRITE_COMMAND,
DELETE_CONNECTION_COMMAND
TRAFFIC_MODEL_COMMAND = 1,
CONNECTION_MODEL_COMMAND = 2,
SENSOR_COMMAND = 3,
CONNECT_COMMAND = 4,
TRAFFIC_WRITE_COMMAND = 5,
DELETE_CONNECTION_COMMAND = 6
};
// This is used for the type field in a SensorCommand
enum SensorType
{
NULL_SENSOR = 0,
PACKET_SENSOR,
DELAY_SENSOR,
MIN_DELAY_SENSOR,
MAX_DELAY_SENSOR,
THROUGHPUT_SENSOR
PACKET_SENSOR = 1,
DELAY_SENSOR = 2,
MIN_DELAY_SENSOR = 3,
MAX_DELAY_SENSOR = 4,
THROUGHPUT_SENSOR = 5
};
// This is used for the type field in the ConnectionModelCommand.
enum
{
CONNECTION_SEND_BUFFER_SIZE = 0,
CONNECTION_RECEIVE_BUFFER_SIZE,
CONNECTION_MAX_SEGMENT_SIZE,
CONNECTION_USE_NAGLES
CONNECTION_RECEIVE_BUFFER_SIZE = 1,
CONNECTION_MAX_SEGMENT_SIZE = 2,
CONNECTION_USE_NAGLES = 3
};
enum
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment