OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
12 #include "../../stdafx.h"
13 #include "../../debug.h"
17 #include "../../safeguards.h"
30 DEBUG(net, 3,
"[core] loading windows socket library");
31 if (WSAStartup(MAKEWORD(2, 0), &wsa) != 0) {
32 DEBUG(net, 0,
"[core] WSAStartup failed, network unavailable");
61 for (j = 0; j <
sizeof(grf->
md5sum); j++) {
75 for (j = 0; j <
sizeof(grf->
md5sum); j++) {
void Send_uint8(uint8 data)
Package a 8 bits integer in the packet.
uint8 md5sum[16]
MD5 checksum of file to distinguish files with the same GRF ID (eg. newer version of GRF)
uint32 grfid
GRF ID (defined by Action 0x08)
void Send_uint32(uint32 data)
Package a 32 bits integer in the packet.
Basic data to distinguish a GRF.
uint32 Recv_uint32()
Read a 32 bits integer from the packet.
#define DEBUG(name, level,...)
Output a line of debugging information.
void SendGRFIdentifier(Packet *p, const GRFIdentifier *grf)
Serializes the GRFIdentifier (GRF ID and MD5 checksum) to the packet.
Internal entity of a packet.
void NetworkCoreShutdown()
Shuts down the network core (as that is needed for some platforms.
uint8 Recv_uint8()
Read a 8 bits integer from the packet.
void ReceiveGRFIdentifier(Packet *p, GRFIdentifier *grf)
Deserializes the GRFIdentifier (GRF ID and MD5 checksum) from the packet.
bool NetworkCoreInitialize()
Initializes the network core (as that is needed for some platforms.