QNativeSocketEngine: declare PacketHeaderOption enum as a bit field

It should be possible to use these constants simultaneously and to
handle them separately from each other.

Change-Id: I0c48a3c25456b487c9d6139b05105ada20f34be6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Alex Trotsenko 2015-10-23 11:37:40 +03:00
parent 192606a9fd
commit ccca3ffdc2

View File

@ -125,9 +125,9 @@ public:
enum PacketHeaderOption {
WantNone = 0,
WantDatagramSender,
WantDatagramDestination,
WantDatagramHopLimit,
WantDatagramSender = 0x01,
WantDatagramDestination = 0x02,
WantDatagramHopLimit = 0x04,
WantAll = 0xff
};