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 @@ 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){