diff options
author | lloyd <[email protected]> | 2011-04-05 10:08:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-04-05 10:08:34 +0000 |
commit | d81b3d27abb1b261d2e8c6222865b1ab358595e7 (patch) | |
tree | 6baa131df00ba36414c1783a03076e91ce1e46e6 /src/ssl/socket.h | |
parent | c84143c2cb2554213399aee6d31e09d26aece6c8 (diff) |
Remove the socket wrapper code, as the SSL interface itself
doesn't actually care. Move it to examples/socket.h
Diffstat (limited to 'src/ssl/socket.h')
-rw-r--r-- | src/ssl/socket.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/ssl/socket.h b/src/ssl/socket.h deleted file mode 100644 index 6d88bd48a..000000000 --- a/src/ssl/socket.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -* Socket Interface -* (C) 2004-2006 Jack Lloyd -* -* Released under the terms of the Botan license -*/ - -#ifndef BOTAN_TLS_SOCKET_H__ -#define BOTAN_TLS_SOCKET_H__ - -#include <botan/types.h> -#include <string> - -namespace Botan { - -/** -* Socket Base Class -*/ -class BOTAN_DLL Socket - { - public: - virtual size_t read(byte[], size_t) = 0; - virtual void write(const byte[], size_t) = 0; - - virtual std::string peer_id() const = 0; - - virtual void close() = 0; - - virtual ~Socket() {} - }; - -/** -* Server Socket Base Class -*/ -class BOTAN_DLL Server_Socket - { - public: - virtual Socket* accept() = 0; - virtual void close() = 0; - - virtual ~Server_Socket() {} - }; - -} - -#endif |