transmission.h

来自「聊天室的源代码程序」· C头文件 代码 · 共 50 行

H
50
字号

#if !defined(AFX_TRANSMISSION_H__457B80A2_75AF_4502_9F42_0A93091773E9__INCLUDED_)
#define AFX_TRANSMISSION_H__457B80A2_75AF_4502_9F42_0A93091773E9__INCLUDED_

#include "USocket.h"
#include "UServerDlg.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Transmission.h : header file
/////////////////////////////////////////////////////////////////////////////
// CTransmission 

class CTransmission
{
// Attributes
public:
	
private:
	CUServerDlg * m_pDlg;
	UINT m_nPort;
	CUSocket *m_pUSocket;

// Operations
public:
	CString GetSystemTime();
	BOOL ExitGroupActive(LPCTSTR lpszHostAddress);
	BOOL JoinGroupActive(LPCTSTR lpszHostAddress);
	CTransmission(); 
	CTransmission(CUServerDlg *pDlg);
	virtual ~CTransmission();
	void ProcessReceiveMsg();
	BOOL StartTransmission(UINT nPort);
	BOOL Broadcast(const void* lpBuf, int nBufLen);
	BOOL Multicast(const void* lpBuf, int nBufLen,LPCTSTR lpszHostAddress);
	BOOL PtoP(const void* lpBuf, int nBufLen,LPCTSTR lpszHostAddress);
	CString GetHostName();
	CString GetHostIP();
// Implementation
protected:

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TRANSMISSION_H__457B80A2_75AF_4502_9F42_0A93091773E9__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?