Go to the documentation of this file. 1 #ifndef __JNET__JSOCKETNONBLOCKINGIO__
2 #define __JNET__JSOCKETNONBLOCKINGIO__
13 namespace JPP {
using namespace JNET; }
21 template<
class JElement_t>
78 void set(JElement_t* buffer,
const int length)
Auxiliary class for non-blocking socket I/O.
void set(JElement_t *buffer, const int length)
Initialise buffer.
virtual int read(char *buffer, const int length)
Read data from socket.
void set(const JSocketBuffer< JElement_t > &buffer)
Initialise buffer.
Interprocess communication.
JStatus_t write()
Continuation of non-blocking write method.
JSocketBuffer(JElement_t *buffer, const int length)
Constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
int getSize() const
Get size of pending data.
JSocketBuffer()
Default constructor.
virtual int write(const char *buffer, const int length)
Write data to socket.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
JStatus_t read()
Continuation of non-blocking read method.
Auxiliary class for non-blocking socket I/O.
JSocketNonblockingWriter(const JSocket &socket)
Constructor.
JSocketBuffer< char > JSocketInputBuffer
Non-blocking socket reader.
JSocketBuffer< const char > JSocketOutputBuffer
Non-blocking socket writer.
JSocketNonblockingReader(const JSocket &socket)
Constructor.