📄 tcp_srve.h
字号:
// tcp_srve.h
//
// Copyright (c) 1998 - 1999 Symbian Ltd. All rights reserved.
//
//////////////////////////////////////////////////////////////
#ifndef __TCP_SRVE_H
#define __TCP_SRVE_H
#include <e32std.h>
#include <e32base.h>
#include <es_sock.h>
class MCommsTestObserver
{
public:
virtual void HandleProgressEvent()=0;
};
// Application engine class
class CTcpSrvEngine : public CActive
{
public:
static CTcpSrvEngine* NewL();
~CTcpSrvEngine();
void StartTestL();
void SetObserver(MCommsTestObserver* aObserver);
TDesC& StatusText() {return iStatusText;}
void StartConnection();
private:
CTcpSrvEngine();
void ConstructL();
void NotifyProgress();
private: // From CActive
void RunL();
void DoCancel();
private:
enum TState
{
EChannelIdle,EChannelListening,EChannelConnected,
EChannelShutingDown,EChannelSending,EChannelReceiving
};
MCommsTestObserver* iObserver;
TBuf<1024> iStatusText;
TState iChannelState;
RSocket iSocket;
RSocket iConnection;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -