eckit::net::MultiSocket class

Constructors, destructors, conversion operators

MultiSocket(size_t streams, size_t messageSize)
MultiSocket(int port)
~MultiSocket()
MultiSocket(MultiSocket&)

Public functions

auto accept() -> MultiSocket&
auto connect(const std::string& host, int port, int retries = 5, int timeout = 0) -> MultiSocket&
auto write(const void* buf, long length) -> long
auto read(void* buf, long length) -> long
void close()
auto remoteAddr() const -> in_addr
auto remoteHost() const -> const std::string&
auto remotePort() const -> int
auto localAddr() const -> in_addr
auto localHost() const -> const std::string&
auto localPort() const -> int
void bufferSize(int n)
void closeOutput()
void closeInput()
void debug(bool on)

Friends

auto operator<<(std::ostream& s, const MultiSocket& socket) -> std::ostream&
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.