16 #ifndef HAZELCAST_CLIENT_SOCKET_H_ 17 #define HAZELCAST_CLIENT_SOCKET_H_ 20 #include <boost/shared_ptr.hpp> 22 #include "hazelcast/client/Address.h" 24 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 26 #pragma warning(disable: 4251) //for dll export 46 virtual int connect(
int timeoutInMillis) = 0;
55 virtual int send(
const void *buffer,
int len,
int flag = 0) = 0;
64 virtual int receive(
void *buffer,
int len,
int flag = 0) = 0;
69 virtual int getSocketId()
const = 0;
75 virtual void close() = 0;
79 virtual void setBlocking(
bool blocking) = 0;
87 virtual std::auto_ptr<Address> localSocketAddress()
const = 0;
93 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) IP Address.
Definition: Address.h:41
Sockets wrapper interface class.
Definition: Socket.h:34
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32