From fb051970ae774b67120fceba6af36030f6388270 Mon Sep 17 00:00:00 2001 From: lloyd <lloyd@randombit.net> Date: Thu, 25 Mar 2010 18:50:57 +0000 Subject: Use size_t for lengths in Socket interface --- src/ssl/socket.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ssl/socket.h') diff --git a/src/ssl/socket.h b/src/ssl/socket.h index 3d893ea77..836a2f004 100644 --- a/src/ssl/socket.h +++ b/src/ssl/socket.h @@ -19,10 +19,10 @@ namespace Botan { class BOTAN_DLL Socket { public: - virtual u32bit read(byte[], u32bit) = 0; - virtual void write(const byte[], u32bit) = 0; + virtual size_t read(byte[], size_t) = 0; + virtual void write(const byte[], size_t) = 0; - u32bit read(byte& x) { return read(&x, 1); } + size_t read(byte& x) { return read(&x, 1); } void write(byte x) { write(&x, 1); } virtual std::string peer_id() const = 0; -- cgit v1.2.3