fix: socket invalid type

This commit is contained in:
2021-09-02 19:53:30 +02:00
parent edc76b7b17
commit 4fc81061af
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ Socket::Socket(Type type)
: m_Blocking(false),
m_Type(type),
m_Status(Disconnected),
m_Handle(INVALID_SOCKET)
m_Handle((SocketHandle) INVALID_SOCKET)
{
}

View File

@@ -16,7 +16,7 @@ namespace network {
TCPSocket::TCPSocket()
: Socket(Socket::TCP), m_Port(0)
{
m_Handle = INVALID_SOCKET;
m_Handle = (SocketHandle) INVALID_SOCKET;
}
bool TCPSocket::Connect(const IPAddress& address, unsigned short port) {
@@ -125,7 +125,7 @@ TCPSocket::TCPSocket(TCPSocket&& other) : Socket(TCP){
m_RemoteIP = other.m_RemoteIP;
SetStatus(other.GetStatus());
SetBlocking(other.IsBlocking());
other.m_Handle = INVALID_SOCKET;
other.m_Handle = (SocketHandle) INVALID_SOCKET;
}
void SendPacket(const DataBuffer& data, network::TCPSocket& socket){