mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
New type
This commit is contained in:
parent
43070ad2d9
commit
c8c231ebb2
@ -969,8 +969,8 @@ bool Network::AppendScreenshot(NetworkUpdatePeerInfo *pi)
|
||||
data = DataStore::ds->embedData(png, sz);
|
||||
if (!data)
|
||||
goto out_png;
|
||||
ud = InitNetworkUpdate(this->ud, 0, sizeof(NetworkUpdate) +
|
||||
sizeof(NetworkUpdateDataStore) + sz);
|
||||
ud = InitNetworkUpdate(this->ud, REGISTER_DATA,
|
||||
sizeof(NetworkUpdate) + sizeof(NetworkUpdateDataStore) + sz);
|
||||
dsu = (NetworkUpdateDataStore *)ud->data;
|
||||
dsu->key = data->key;
|
||||
dsu->metadata = data->metadata;
|
||||
|
@ -34,6 +34,7 @@ typedef enum
|
||||
ACK = 94, /* Answer to broker */
|
||||
BANDWIDTH_PING = 92, /* Large packet to calculate bandwidth */
|
||||
BANDWIDTH_ACK = 91, /* Answer to BANDWIDTH_PING */
|
||||
REGISTER_DATA = 90, /* Register data (screenshots typically) */
|
||||
/* Non-data messages */
|
||||
STOP = 55, /* End of this update sequence */
|
||||
/* Data transfer of various kinds */
|
||||
|
Loading…
Reference in New Issue
Block a user