         let binary = Array(UnsafeBufferPointer<UInt8>(start: pointer, count: length))
         
         if self.sslEnabled {
-            #if os(macOS) || os(iOS)
+            #if (os(macOS) || os(iOS)) && !OPENSSL
                 var ditched = binary.count
                 SSLWrite(self.sslClient!, binary, binary.count, &ditched)
                 

    /// Closes the connection
    public func close() throws {
        if sslEnabled {
            #if os(macOS) || os(iOS)
                SSLClose(sslClient!)
                _ = Darwin.close(plainClient)
            #else
                _ = Glibc.close(plainClient)
            #endif
        } else {
            #if os(macOS) || os(iOS)
                _ = Darwin.close(plainClient)
            #else
                _ = Glibc.close(plainClient)

        }
        
        
        #if (os(macOS) || os(iOS)) && !OPENSSL
            var val = 1
            setsockopt(self.plainClient, SOL_SOCKET, SO_NOSIGPIPE, &val, socklen_t(MemoryLayout<Int>.stride))
            
