What is the best way to send an enum value through sockets? Is there a way to convert an enum value to an int and vice versa? Like:
Enum values {
value1,
value2
}
int value = (int)value1;
And...
values value2 = (value) value;
Would be very nice to send this over the internet! Thanks all!
Bas