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); |