Add handshaking.
This commit is contained in:
@@ -34,6 +34,7 @@ public:
|
||||
TCPIP_RETURN_CODE Recv(int _Addr,int& _Data,bool _bWait);
|
||||
TCPIP_RETURN_CODE DisConnect();
|
||||
TCPIP_RETURN_CODE GetHostIPAddr(in_addr& _IPAddress);
|
||||
TCPIP_RETURN_CODE Handshaking();
|
||||
|
||||
|
||||
LRESULT OnSocket(WPARAM wParam, LPARAM lParam);
|
||||
@@ -51,9 +52,11 @@ private:
|
||||
|
||||
static SOCKET m_Socket;
|
||||
static in_addr m_SreverIPAddress;
|
||||
static in_addr m_ClientIPAddress;
|
||||
static u_short m_iServerPortNumber;
|
||||
|
||||
void clearSendBuf();
|
||||
|
||||
TCPIP_RETURN_CODE SendBuffer();
|
||||
void m_ClearSendBuf();
|
||||
|
||||
int Init_Winsock();
|
||||
void m_ProcessSocketWriteEvent();
|
||||
|
||||
Reference in New Issue
Block a user