www.pudn.com > DTDaemon.rar > DTSocket.h


/* 
============================================================================ 
 Name        : CDTSocket.h 
 Author      :  
 Version     : 
 Copyright   : Your copyright notice 
 Description : CDTSocket.h - header file 
============================================================================ 
*/ 
 
#ifndef DTSocket_H 
#define DTSocket_H 
 
#include   // CBase, link against euser.lib 
#include  
#include  
#include  
#include "DTDaemon.h" 
 
class CDTSocket : public CBase 
{ 
private: 
	CDTSocket(TInt aPort); 
	~CDTSocket(); 
	TInt iPort; 
private: 
	RSocketServ iSocketServ; 
	RSocket iListener; 
	RSocket iBlank; 
public: 
	static CDTSocket* NewLC(TInt aPort); 
	void ConstructL(); 
	void Accept(); 
	TInt Read(TDes8& aBuffer, TInt aLength); 
	TInt Write(TDes8& aBuffer, TInt aLength); 
}; 
 
#endif // CDTSocket_H