Sha256: 75e9ecb431b418f0865b59186cf311952efcd8ce0d231f6f030663e61f810488

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

#ifndef RHO_SSL_IMPL_EC601E9D39EFA5CBA3F57583992797A
#define RHO_SSL_IMPL_EC601E9D39EFA5CBA3F57583992797A

#include <net/ssl.h>
#include <jni.h>

namespace rho {
namespace net {

class SSLImpl : public ISSL
{
public:
    SSLImpl();

    void* createStorage();
    void freeStorage(void *ptr);

    CURLcode connect(int sockfd, int nonblocking, int *done, void *storage);
    void shutdown(void *storage);
    ssize_t send(const void *mem, size_t len, void *storage);
    ssize_t recv(char *buf, size_t size, int *wouldblock, void *storage);

private:
    jclass cls;
    jmethodID midConstructor;
    jmethodID midConnect;
    jmethodID midShutdown;
    jmethodID midSend;
    jmethodID midRecv;
};

}
}

#endif // RHO_SSL_IMPL_EC601E9D39EFA5CBA3F57583992797A

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rhodes-1.5.5 platform/android/Rhodes/jni/include/sslimpl.h
rhodes-1.5.4 platform/android/Rhodes/jni/include/sslimpl.h
rhodes-1.5.3 platform/android/Rhodes/jni/include/sslimpl.h
rhodes-1.5.2 platform/android/Rhodes/jni/include/sslimpl.h
rhodes-1.5.1 platform/android/Rhodes/jni/include/sslimpl.h
rhodes-1.5.0 platform/android/Rhodes/jni/include/sslimpl.h