MFC
Class CSocketFile
CObject
|
+--CFile
|
+--CSocketFile
in AFXSOCK.H
- class CSocketFile
- extends CFile
CSocketFile
|
Method Summary |
virtual void |
Abort()
|
virtual void |
Close()
|
virtual CFile* |
Duplicate() const
|
virtual void |
Flush()
|
virtual DWORD |
GetLength() const
|
virtual DWORD |
GetPosition() const
|
virtual void |
LockRange( DWORD dwPos, DWORD dwCount )
|
virtual BOOL |
Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL )
|
virtual UINT |
Read( void* lpBuf, UINT nCount )
|
virtual LONG |
Seek( LONG lOff, UINT nFrom )
|
virtual void |
SetLength( DWORD dwNewLen )
|
virtual void |
UnlockRange( DWORD dwPos, DWORD dwCount )
|
virtual void |
Write( const void* lpBuf, UINT nCount )
|
| Methods inherited from class CFile |
GetRuntimeClass, HFILE, GetPosition, GetStatus, GetFileName, GetFileTitle, GetFilePath, SetFilePath, Open, Rename, Remove, GetStatus, SetStatus, SeekToEnd, SeekToBegin, ReadHuge, WriteHuge, Duplicate, Seek, SetLength, GetLength, Read, Write, LockRange, UnlockRange, Abort, Flush, Close, GetBufferPtr |
m_bArchiveCompatible
public BOOL m_bArchiveCompatible;
m_pSocket
public CSocket* m_pSocket;
CSocketFile
public CSocketFile( CSocket* pSocket, BOOL bArchiveCompatible = TRUE );
~CSocketFile
public virtual ~CSocketFile();
Abort
public virtual void Abort();
Close
public virtual void Close();
Duplicate
public virtual CFile* Duplicate() const;
Flush
public virtual void Flush();
GetLength
public virtual DWORD GetLength() const;
GetPosition
public virtual DWORD GetPosition() const;
LockRange
public virtual void LockRange( DWORD dwPos, DWORD dwCount );
Open
public virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags, CFileException* pError = NULL );
Read
public virtual UINT Read( void* lpBuf, UINT nCount );
Seek
public virtual LONG Seek( LONG lOff, UINT nFrom );
SetLength
public virtual void SetLength( DWORD dwNewLen );
UnlockRange
public virtual void UnlockRange( DWORD dwPos, DWORD dwCount );
Write
public virtual void Write( const void* lpBuf, UINT nCount );