class
#include <eckit/net/MultiSocket.h>
MultiSocket
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&