|
Hazelcast C++ Client
|
Sockets wrapper interface class. More...
#include <Socket.h>
Inheritance diagram for hazelcast::client::Socket: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, int flag=0)=0 |
| virtual int | receive (void *buffer, int len, int flag=0)=0 |
| virtual int | getSocketId () const =0 |
| return socketId | |
| virtual void | close ()=0 |
| closes the socket. More... | |
| virtual client::Address | getAddress () const =0 |
| virtual void | setBlocking (bool blocking)=0 |
| virtual std::auto_ptr< Address > | localSocketAddress () const =0 |
| This function is used to obtain the locally bound endpoint of the socket. More... | |
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 |
This function is used to obtain the locally bound endpoint of the socket.
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 |
| flag | bsd sockets options flag. Only MSG_WAITALL is supported when SSL is enabled. |
| IOException | in failure. |
Implemented in hazelcast::client::internal::socket::TcpSocket.
1.8.14