Network/HostnameInfo: Replace family/socketType raw value by engine enumeration
Former-commit-id: 40adb7654b5a741c5fa12c1b866e3b427b1be5e9
This commit is contained in:
@@ -30,6 +30,7 @@ namespace Nz
|
||||
switch (m_protocol)
|
||||
{
|
||||
case NetProtocol_Any:
|
||||
case NetProtocol_Unknown:
|
||||
NazaraInternalError("Invalid protocol Any at this point");
|
||||
return SocketState_NotConnected;
|
||||
|
||||
@@ -48,6 +49,8 @@ namespace Nz
|
||||
|
||||
bool UdpSocket::Create(NetProtocol protocol)
|
||||
{
|
||||
NazaraAssert(protocol != NetProtocol_Unknown, "Invalid protocol");
|
||||
|
||||
return Open(protocol);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user