Sockets wrapper interface class. More...
#include <Socket.h>
Public Member Functions | |
virtual | ~Socket () |
Destructor. | |
virtual int | connect (int timeoutInMillis)=0 |
connects to given address in constructor. More... | |
virtual int | send (const void *buffer, int len) const =0 |
virtual int | receive (void *buffer, int len, int flag=0) const =0 |
virtual int | getSocketId () const =0 |
return socketId | |
virtual void | setRemoteEndpoint (const client::Address &address)=0 |
virtual const client::Address & | getRemoteEndpoint () const =0 |
virtual void | close ()=0 |
closes the socket. More... | |
virtual client::Address | getAddress () const =0 |
virtual void | setBlocking (bool blocking)=0 |
Sockets wrapper interface class.
|
pure virtual |
closes the socket.
Automatically called in destructor. Second call to this function is no op.
Implemented in hazelcast::client::internal::socket::TcpSocket.
|
pure virtual |
connects to given address in constructor.
timeoutInMillis | if not connected within timeout, it will return errorCode |
IOException | on failure. |
Implemented in hazelcast::client::internal::socket::TcpSocket.
|
pure virtual |
Implemented in hazelcast::client::internal::socket::TcpSocket.
|
pure virtual |
buffer | |
len | length of the buffer to be received. |
flag | bsd sockets options flag. Only MSG_WAITALL is supported when SSL is enabled. |
IOException | in failure. |
Implemented in hazelcast::client::internal::socket::TcpSocket.
|
pure virtual |
buffer | |
len | length of the buffer |
IOException | in failure. |
Implemented in hazelcast::client::internal::socket::TcpSocket.
|
pure virtual |
address | remote endpoint address. |
Implemented in hazelcast::client::internal::socket::TcpSocket.