tabs to spaces

This commit is contained in:
Thomas "elfprince13" Dickerson 2017-01-06 18:06:36 -05:00
parent 32f726dcc6
commit 9773f18a88

View file

@ -78,8 +78,8 @@ struct NetAddress
bool isSameAddress(const NetAddress &other) const bool isSameAddress(const NetAddress &other) const
{ {
if (type != other.type) if (type != other.type)
return false; return false;
switch (type) switch (type)
{ {
@ -102,32 +102,32 @@ struct NetAddress
bool isSameAddressAndPort(const NetAddress &other) const bool isSameAddressAndPort(const NetAddress &other) const
{ {
if (type != other.type) if (type != other.type)
return false; return false;
switch (type) switch (type)
{ {
case NetAddress::IPAddress: case NetAddress::IPAddress:
return (dMemcmp(other.address.ipv4.netNum, address.ipv4.netNum, 4) == 0) && other.port == port; return (dMemcmp(other.address.ipv4.netNum, address.ipv4.netNum, 4) == 0) && other.port == port;
break; break;
case NetAddress::IPV6Address: case NetAddress::IPV6Address:
return (dMemcmp(other.address.ipv6.netNum, address.ipv6.netNum, 16) == 0) && other.port == port; return (dMemcmp(other.address.ipv6.netNum, address.ipv6.netNum, 16) == 0) && other.port == port;
break; break;
case NetAddress::IPBroadcastAddress: case NetAddress::IPBroadcastAddress:
return true; return true;
break; break;
case NetAddress::IPV6MulticastAddress: case NetAddress::IPV6MulticastAddress:
return true; return true;
break; break;
} }
return false; return false;
} }
bool isEqual(const NetAddress &other) const bool isEqual(const NetAddress &other) const
{ {
if (type != other.type) if (type != other.type)
return false; return false;
switch (type) switch (type)
{ {
@ -193,7 +193,7 @@ struct Net
WouldBlock, WouldBlock,
NotASocket, NotASocket,
UnknownError, UnknownError,
NeedHostLookup NeedHostLookup
}; };
enum ConnectionState { enum ConnectionState {
@ -215,10 +215,10 @@ struct Net
static bool smIpv4Enabled; static bool smIpv4Enabled;
static bool smIpv6Enabled; static bool smIpv6Enabled;
static ConnectionNotifyEvent* smConnectionNotify; static ConnectionNotifyEvent* smConnectionNotify;
static ConnectionAcceptedEvent* smConnectionAccept; static ConnectionAcceptedEvent* smConnectionAccept;
static ConnectionReceiveEvent* smConnectionReceive; static ConnectionReceiveEvent* smConnectionReceive;
static PacketReceiveEvent* smPacketReceive; static PacketReceiveEvent* smPacketReceive;
static bool init(); static bool init();