⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdploop.h

📁 Symbian C++ scmp.zip
💻 H
字号:
// gdploop.h
//
// Copyright (c) 2000 Symbian Ltd.  All rights reserved.
//

#ifndef __GDPLOOP_H__
#define __GDPLOOP_H__

#include "gdp.h"
#include "gdpmain.h"

// game datagram protocol - loopback

/*
	class CGdpLoopback
*/

class CGdpLoopback : public CGdpSession
	{
public:
	CGdpLoopback();
	~CGdpLoopback();
	static CGdpSession* NewL();
	// from MGdpSession
	void OpenL(MGdpPacketHandler* aHandler); // start up, and set handler for packets received
	void SendL(const TDesC8& aToAddress, const TDesC8& aData); // send packet
	TInt ReceiveAll(); // do a pull if necessary
	TInt GetMaxPacketLength() const; // max packet length
	TBool IsNetworked() const; // if not point-to-point, then preserves addresses
private:
	static TInt DelayedSendComplete(TAny* aObject); 
	static TInt DelayedInformHandler(TAny* aObject); 	
	void DoSendComplete(); 
	void DoInformHandler(); 
private:
	MGdpPacketHandler* iHandler;
	HBufC8* iBuffer;	
	CAsyncCallBack* iAsyncSendComplete;		
	CAsyncCallBack* iAsyncInformHandler;
	
	};

#endif

⌨️ 快捷键说明

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