aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/os_utils.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-10-03 11:16:02 +0200
committerSimon Warta <[email protected]>2017-10-03 11:16:02 +0200
commit3b50c4b50e25330860de69cf5ef86444e1ef66f7 (patch)
treec0ceae783083daa82d9e90308eab4d1281fc6a85 /src/lib/utils/os_utils.h
parent9efe16ed1d416390584621276dcb8e3782d17c71 (diff)
Move socket implementation into module http_util
This removes the requirement of linking socket libraries for applications that do not use http_util
Diffstat (limited to 'src/lib/utils/os_utils.h')
-rw-r--r--src/lib/utils/os_utils.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/lib/utils/os_utils.h b/src/lib/utils/os_utils.h
index 405afb29c..feccdbe73 100644
--- a/src/lib/utils/os_utils.h
+++ b/src/lib/utils/os_utils.h
@@ -23,39 +23,6 @@ namespace OS {
* this hasn't been tested.
*/
-
-/**
-* A wrapper around a simple blocking TCP socket
-*/
-class BOTAN_TEST_API Socket
- {
- public:
- /**
- * The socket will be closed upon destruction
- */
- virtual ~Socket() {};
-
- /**
- * Write to the socket. Blocks until all bytes sent.
- * Throws on error.
- */
- virtual void write(const uint8_t buf[], size_t len) = 0;
-
- /**
- * Reads up to len bytes, returns bytes written to buf.
- * Returns 0 on EOF. Throws on error.
- */
- virtual size_t read(uint8_t buf[], size_t len) = 0;
- };
-
-/**
-* Open up a socket. Will throw on error. Returns null if sockets are
-* not available on this platform.
-*/
-std::unique_ptr<Socket>
-BOTAN_TEST_API open_socket(const std::string& hostname,
- const std::string& service);
-
/**
* @return process ID assigned by the operating system.
* On Unix and Windows systems, this always returns a result