mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-02-16 17:35:39 +00:00
rename to avoid clash with a #define
This commit is contained in:
parent
3ab93cf6ee
commit
53c98283aa
|
@ -6,14 +6,14 @@ namespace SMUDP
|
|||
struct Packet
|
||||
{
|
||||
|
||||
static const UINT32 BUFFER_SIZE = 1460;
|
||||
static const UINT32 BUFFER_SIZE_UDP = 1460;
|
||||
|
||||
UINT32 crc;
|
||||
UINT16 currentID;
|
||||
UINT16 totalIDs;
|
||||
UINT16 flags;
|
||||
UINT16 length;
|
||||
UCHAR data[1460];
|
||||
UCHAR data[BUFFER_SIZE_UDP];
|
||||
|
||||
Packet() {
|
||||
Init();
|
||||
|
|
|
@ -85,8 +85,8 @@ bool UDPSend::Send(const char* ip, int port, int length, const void *data, int t
|
|||
|
||||
packet.flags = 0; // reset the flags (not used currently)
|
||||
|
||||
if (length > packet.BUFFER_SIZE) {
|
||||
packet.length = packet.BUFFER_SIZE;
|
||||
if (length > packet.BUFFER_SIZE_UDP) {
|
||||
packet.length = packet.BUFFER_SIZE_UDP;
|
||||
}
|
||||
else {
|
||||
packet.length = length;
|
||||
|
|
Loading…
Reference in a new issue