summaryrefslogtreecommitdiff
path: root/src/tcp_socket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp_socket.hpp')
-rw-r--r--src/tcp_socket.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tcp_socket.hpp b/src/tcp_socket.hpp
index 3312605..4540bf9 100644
--- a/src/tcp_socket.hpp
+++ b/src/tcp_socket.hpp
@@ -21,6 +21,8 @@
#ifndef __ZMQ_TCP_SOCKET_HPP_INCLUDED__
#define __ZMQ_TCP_SOCKET_HPP_INCLUDED__
+#include <stddef.h>
+
#include "fd.hpp"
#include "stdint.hpp"
@@ -49,13 +51,13 @@ namespace zmq
// Writes data to the socket. Returns the number of bytes actually
// written (even zero is to be considered to be a success). In case
// of error or orderly shutdown by the other peer -1 is returned.
- int write (const void *data, int size);
+ int write (const void *data_, size_t size_);
// Reads data from the socket (up to 'size' bytes). Returns the number
// of bytes actually read (even zero is to be considered to be
// a success). In case of error or orderly shutdown by the other
// peer -1 is returned.
- int read (void *data, int size);
+ int read (void *data_, size_t size_);
private: