diff options
author | lloyd <[email protected]> | 2010-03-25 18:50:57 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-25 18:50:57 +0000 |
commit | fb051970ae774b67120fceba6af36030f6388270 (patch) | |
tree | 0a17f02f581c24c684d2ef847352f3c199d769fb /src/ssl/socket.h | |
parent | 5aba87e47c7a598a82cd508409ac951c5b74cf9d (diff) |
Use size_t for lengths in Socket interface
Diffstat (limited to 'src/ssl/socket.h')
-rw-r--r-- | src/ssl/socket.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |