Closed Brett208 closed 5 years ago
Just noticed the following in Packet.h
in the same folder:
// Bring in definitions of structs: GUID, sockaddr_in
#include <winsock2.h>
Not sure if you want to adjust the include or not based on this. Probably not. We definitely should be including something that defines GUID
though, otherwise the NetTransportLayer.h
header isn't standalone.
I'm not sure what your comment is getting at? Are you suggesting that we should use the winsock header in NetTransportLayer or that we should add rpc header in Packet.h?
Thanks, Brett
I'm not certain. I was deferring to you. I think we should add one of the two headers. As per the online documentation, rpc.h
is the preferred header for GUID
.
There will be a difference in the include in Packet.h, but Packet.h also needs sockaddr_in
, and it seems winsock2.h
includes both GUID
and sockaddr_in
, so it's also probably fine.
I think we should just merge.
Closes #20