📄 client.h
字号:
// Client.h: interface for the CClient class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLIENT_H__766BFE98_5EBE_4E3F_80A4_BB2DBCC3BFFA__INCLUDED_)
#define AFX_CLIENT_H__766BFE98_5EBE_4E3F_80A4_BB2DBCC3BFFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "winsock.h"
class CClient
{
public:
CClient();
virtual ~CClient();
void UDPClientInit();
void UDPTalkClientInit();
private:
void TCPClientInit();
public:
BOOL TCPInitAndConnet(HWND hwnd,UINT port,CString m_strServer);
BOOL UDPConnectServer(HWND hwnd,UINT port,CString strserver) ;
public:
CString m_strServer;
SOCKET m_hUSocket;
SOCKET m_hTSocket;
sockaddr_in m_addr;
UINT m_uPort;
UINT m_tPort;
HWND m_hWnd;
};
#endif // !defined(AFX_CLIENT_H__766BFE98_5EBE_4E3F_80A4_BB2DBCC3BFFA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -