-
Notifications
You must be signed in to change notification settings - Fork 14
/
NFS2Prog.h
43 lines (36 loc) · 938 Bytes
/
NFS2Prog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _NFS2PROG_H_
#define _NFS2PROG_H_
#include "RPCProg.h"
class CNFS2Prog : public CRPCProg
{
public:
CNFS2Prog();
~CNFS2Prog();
void SetUserID(unsigned int nUID, unsigned int nGID);
int Process(IInputStream *pInStream, IOutputStream *pOutStream, ProcessParam *pParam);
protected:
unsigned int m_nUID, m_nGID;
IInputStream *m_pInStream;
IOutputStream *m_pOutStream;
void ProcedureNULL(void);
void ProcedureGETATTR(void);
void ProcedureSETATTR(void);
void ProcedureLOOKUP(void);
void ProcedureREAD(void);
void ProcedureWRITE(void);
void ProcedureCREATE(void);
void ProcedureREMOVE(void);
void ProcedureRENAME(void);
void ProcedureMKDIR(void);
void ProcedureRMDIR(void);
void ProcedureREADDIR(void);
void ProcedureSTATFS(void);
void ProcedureNOTIMP(void);
private:
int m_nResult;
char *GetPath(void);
char *GetFullPath(void);
bool CheckFile(char *path);
bool WriteFileAttributes(char *path);
};
#endif