16 #ifndef HAZELCAST_CLIENT_SOCKET_H_
17 #define HAZELCAST_CLIENT_SOCKET_H_
19 #include "hazelcast/client/Address.h"
21 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
23 #pragma warning(disable: 4251) //for dll export
43 virtual int connect(
int timeoutInMillis) = 0;
51 virtual int send(
const void *buffer,
int len)
const = 0;
60 virtual int receive(
void *buffer,
int len,
int flag = 0)
const = 0;
65 virtual int getSocketId()
const = 0;
81 virtual void close() = 0;
85 virtual void setBlocking(
bool blocking) = 0;
95 bool operator ()(
Socket const *
const &lhs,
Socket const *
const &rhs)
const;
100 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Socket Ptr compare method.
Definition: Socket.h:91
IP Address.
Definition: Address.h:36
Sockets wrapper interface class.
Definition: Socket.h:31