Go to the documentation of this file. 1 #ifndef __JNET__JSOCKETCHANNEL__
2 #define __JNET__JSOCKETCHANNEL__
17 namespace JPP {
using namespace JNET; }
33 template<
class JPrefix_t>
44 template<
class JPrefix_t>
85 template<
class JPrefix_t>
192 template<
class JPrefix_t>
226 const int length =
tellp();
void reset()
Reset channel.
virtual int write(const char *buffer, const int length)
Write byte array.
void seekp(const int pos)
Set write position.
void set(const JSocketBuffer< JElement_t > &buffer)
Initialise buffer.
bool isReset() const
Check reset status.
void setSizeOfPacket(const int size, JPrefix_t &prefix)
Set total size of internet packet.
bool isReady() const
Check ready status.
Interprocess communication.
JStatus_t write()
Continuation of non-blocking write method.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
void reset()
Reset channel.
bool isBusy() const
Check busy status.
int tellp() const
Get write position.
JStatus_t read()
Continuation of non-blocking read method.
JSocketOutputChannel(JSocket &socket)
Constructor.
Non-blocking socket reader.
JStatus_t write()
Interruptable write method.
JByteArrayReader()
Default constructor.
Auxiliary class for socket channel.
Exception for socket channel.
JStatus_t getStatus() const
Get status of I/O.
virtual int read(char *buffer, const int length)
Read byte array.
Non-blocking socket writer.
int getSizeOfPacket(const KM3NETDAQ::JDAQAbstractPreamble &preamble)
Get size of packeet.
Byte array binary output.