genericopenlibs/openenvcore/backend/ipcserver/ipccli/inc/ipcclient.h
branchRCL_3
changeset 25 7701629b34a6
parent 0 e4d67989cc36
equal deleted inserted replaced
20:a2e897c5c62b 25:7701629b34a6
    27 #include<e32std.h> //RSessionBase
    27 #include<e32std.h> //RSessionBase
    28 #include<e32def.h> //Varargs
    28 #include<e32def.h> //Varargs
    29 #include <sys/types.h>
    29 #include <sys/types.h>
    30 #include <sys/sem.h>
    30 #include <sys/sem.h>
    31 
    31 
       
    32 
    32 struct msqid_ds;
    33 struct msqid_ds;
    33 struct shmid_ds;
    34 struct shmid_ds;
    34 
    35 
    35 class TChunk
    36 class TChunk
    36 	{
    37 	{
    50 
    51 
    51 class RIpcSession : public RSessionBase
    52 class RIpcSession : public RSessionBase
    52 	{
    53 	{
    53 	public:
    54 	public:
    54 		RIpcSession():iIsConnected(EFalse)
    55 		RIpcSession():iIsConnected(EFalse)
    55 			{iLock.CreateLocal();}
    56 			{
    56 				
    57             iLock.CreateLocal();
       
    58 			}
       
    59 		inline void Close()
       
    60 		    {
       
    61 		    iLock.Close();
       
    62 		    RSessionBase::Close();
       
    63 		    }
    57 		//msgqueue functions
    64 		//msgqueue functions
    58 		int msgctl(int msqid, int cmd, struct msqid_ds *buf, int &aerrno);
    65 		int msgctl(int msqid, int cmd, struct msqid_ds *buf, int &aerrno);
    59 		int msgget(key_t key, int msgflg, int& aerrno);
    66 		int msgget(key_t key, int msgflg, int& aerrno);
    60 		ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg, int& aerrno);
    67 		ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg, int& aerrno);
    61 		int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg, int& aerrno);
    68 		int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg, int& aerrno);