|
LLVM
4.0.0
|
Interface for byte-streams to be used with RPC. More...
#include <RawByteChannel.h>
Public Member Functions | |
| virtual | ~RawByteChannel () |
| virtual Error | readBytes (char *Dst, unsigned Size)=0 |
| Read Size bytes from the stream into *Dst. More... | |
| virtual Error | appendBytes (const char *Src, unsigned Size)=0 |
| Read size bytes from *Src and append them to the stream. More... | |
| virtual Error | send ()=0 |
| Flush the stream if possible. More... | |
| template<typename FunctionIdT , typename SequenceIdT > | |
| Error | startSendMessage (const FunctionIdT &FnId, const SequenceIdT &SeqNo) |
| Notify the channel that we're starting a message send. More... | |
| Error | endSendMessage () |
| Notify the channel that we're ending a message send. More... | |
| template<typename FunctionIdT , typename SequenceNumberT > | |
| Error | startReceiveMessage (FunctionIdT &FnId, SequenceNumberT &SeqNo) |
| Notify the channel that we're starting a message receive. More... | |
| Error | endReceiveMessage () |
| Notify the channel that we're ending a message receive. More... | |
| std::mutex & | getReadLock () |
| Get the lock for stream reading. More... | |
| std::mutex & | getWriteLock () |
| Get the lock for stream writing. More... | |
Interface for byte-streams to be used with RPC.
Definition at line 33 of file RawByteChannel.h.
|
inlinevirtual |
Definition at line 35 of file RawByteChannel.h.
|
pure virtual |
Read size bytes from *Src and append them to the stream.
|
inline |
Notify the channel that we're ending a message receive.
Unlocks the channel for reading.
Definition at line 71 of file RawByteChannel.h.
References llvm::Error::success().
|
inline |
Notify the channel that we're ending a message send.
Unlocks the channel for writing.
Definition at line 56 of file RawByteChannel.h.
References llvm::Error::success().
|
inline |
Get the lock for stream reading.
Definition at line 77 of file RawByteChannel.h.
|
inline |
Get the lock for stream writing.
Definition at line 80 of file RawByteChannel.h.
Read Size bytes from the stream into *Dst.
|
pure virtual |
Flush the stream if possible.
|
inline |
Notify the channel that we're starting a message receive.
Locks the channel for reading.
Definition at line 64 of file RawByteChannel.h.
References llvm::orc::rpc::deserializeSeq().
|
inline |
Notify the channel that we're starting a message send.
Locks the channel for writing.
Definition at line 49 of file RawByteChannel.h.
References llvm::orc::rpc::serializeSeq().
1.8.6