class
#include <eckit/io/MultiSocketHandle.h>
MultiSocketHandle
Base classes
- class DataHandle
Public static functions
Constructors, destructors, conversion operators
- MultiSocketHandle(Stream&)
-
MultiSocketHandle(const std::
string& host, int port, size_t streams, size_t messageSize, size_t bufferSize = 0) - ~MultiSocketHandle()
Public functions
- auto openForRead() -> Length override
- void openForWrite(const Length&) override
- void openForAppend(const Length&) override
- auto read(void*, long) -> long override
- auto write(const void*, long) -> long override
- void close() override
- void rewind() override
- auto clone() const -> DataHandle* override
-
void print(std::
ostream&) const override -
auto title() const -> std::
string override - auto moveable() const -> bool override
- auto canSeek() const -> bool override
- void encode(Stream&) const override
- auto reanimator() const -> const ReanimatorBase& override
- void flush() virtual
- auto size() -> Length virtual
- auto estimate() -> Length virtual
- auto position() -> Offset virtual
- auto seek(const Offset&) -> Offset virtual
- void skip(const Length&) virtual
- void restartReadFrom(const Offset&) virtual
- void restartWriteFrom(const Offset&) virtual
- auto saveInto(DataHandle&, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
- Save into an other datahandle.
- auto saveInto(const PathName&, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
- Save into a file.
- auto copyTo(DataHandle&, long bufsize = -1, Length maxsize = -1, TransferWatcher& = TransferWatcher::dummy()) -> Length virtual
-
auto name() const -> std::
string virtual - auto openf(const char* mode, bool delete_on_close = false) -> FILE*
- Create a FILE* from this handle.
- auto openf(bool delete_on_close = false) -> FILE*
- auto compare(DataHandle&) -> bool
- Compare bytes.
- auto compress(bool = false) -> bool virtual
- auto merge(DataHandle*) -> bool virtual
- auto isEmpty() const -> bool virtual
- void toLocal(Stream& s) const virtual
- auto toLocal() -> DataHandle* virtual
- void toRemote(Stream& s) const virtual
- void selectMover(MoverTransferSelection&, bool read) const virtual
-
auto metricsTag() const -> std::
string virtual -
void collectMetrics(const std::
string& what) const virtual - void hash(MD5& md5) const virtual
- auto doubleBufferOK() const -> bool virtual
-
auto className() const -> std::
string virtual
Function documentation
void eckit:: MultiSocketHandle:: flush() virtual
#include <eckit/io/DataHandle.h>
Length eckit:: MultiSocketHandle:: size() virtual
#include <eckit/io/DataHandle.h>
Length eckit:: MultiSocketHandle:: estimate() virtual
#include <eckit/io/DataHandle.h>
Offset eckit:: MultiSocketHandle:: position() virtual
#include <eckit/io/DataHandle.h>
Offset eckit:: MultiSocketHandle:: seek(const Offset&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: skip(const Length&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: restartReadFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: restartWriteFrom(const Offset&) virtual
#include <eckit/io/DataHandle.h>
Length eckit:: MultiSocketHandle:: saveInto(DataHandle&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into an other datahandle.
Length eckit:: MultiSocketHandle:: saveInto(const PathName&,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Save into a file.
Length eckit:: MultiSocketHandle:: copyTo(DataHandle&,
long bufsize = -1,
Length maxsize = -1,
TransferWatcher& = TransferWatcher::dummy()) virtual
#include <eckit/io/DataHandle.h>
Quiet version of saveInto Does not support progess, restart and double buffering
std:: string eckit:: MultiSocketHandle:: name() const virtual
#include <eckit/io/DataHandle.h>
FILE* eckit:: MultiSocketHandle:: openf(const char* mode,
bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
Create a FILE* from this handle.
FILE* eckit:: MultiSocketHandle:: openf(bool delete_on_close = false)
#include <eckit/io/DataHandle.h>
bool eckit:: MultiSocketHandle:: compare(DataHandle&)
#include <eckit/io/DataHandle.h>
Compare bytes.
bool eckit:: MultiSocketHandle:: compress(bool = false) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: MultiSocketHandle:: merge(DataHandle*) virtual
#include <eckit/io/DataHandle.h>
bool eckit:: MultiSocketHandle:: isEmpty() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: toLocal(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
DataHandle* eckit:: MultiSocketHandle:: toLocal() virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: toRemote(Stream& s) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: selectMover(MoverTransferSelection&,
bool read) const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: MultiSocketHandle:: metricsTag() const virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: collectMetrics(const std:: string& what) const virtual
#include <eckit/io/DataHandle.h>
void eckit:: MultiSocketHandle:: hash(MD5& md5) const virtual
#include <eckit/io/DataHandle.h>
bool eckit:: MultiSocketHandle:: doubleBufferOK() const virtual
#include <eckit/io/DataHandle.h>
std:: string eckit:: MultiSocketHandle:: className() const virtual
#include <eckit/serialisation/Streamable.h>