* @return the number of bytes transferred of -1 upon error
*/
static ssize_t default_recv(const void *cookie,
- SOCKET sock,
+ memcached_socket_t sock,
void *buf,
size_t nbytes)
{
* @return the number of bytes transferred of -1 upon error
*/
static ssize_t default_send(const void *cookie,
- SOCKET fd,
+ memcached_socket_t fd,
const void *buf,
size_t nbytes)
{
free(instance);
}
-struct memcached_protocol_client_st *memcached_protocol_create_client(struct memcached_protocol_st *instance, SOCKET sock)
+struct memcached_protocol_client_st *memcached_protocol_create_client(struct memcached_protocol_st *instance, memcached_socket_t sock)
{
struct memcached_protocol_client_st *ret= calloc(1, sizeof(*ret));
if (ret != NULL)