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:
@@ -33,14 +33,11 @@ public:
|
||||
{return m_sockfd;}
|
||||
void SetSocket(SOCKET sockfd)
|
||||
{m_sockfd = sockfd;}
|
||||
const sockaddr_storage *GetSockaddr() const
|
||||
{return &m_sockaddr;}
|
||||
sockaddr_storage *GetSockaddr()
|
||||
{return &m_sockaddr;}
|
||||
|
||||
SOCKET ReleaseSocket();
|
||||
|
||||
private:
|
||||
SOCKET m_sockfd;
|
||||
sockaddr_storage m_sockaddr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user