Initial handshake and network game start. Works with multiple clients. Not yet stable, because it is not thread-safe. GUI callbacks not complete yet (server dialog not updated).
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
ConnectData::ConnectData()
|
||||
: m_sockfd(INVALID_SOCKET)
|
||||
{
|
||||
bzero(&m_sockaddr, sizeof(m_sockaddr));
|
||||
}
|
||||
|
||||
ConnectData::~ConnectData()
|
||||
@@ -31,3 +30,11 @@ ConnectData::~ConnectData()
|
||||
CLOSESOCKET(m_sockfd);
|
||||
}
|
||||
|
||||
SOCKET
|
||||
ConnectData::ReleaseSocket()
|
||||
{
|
||||
SOCKET tmpSock = m_sockfd;
|
||||
m_sockfd = INVALID_SOCKET;
|
||||
return tmpSock;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user