websocket.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_TLS_H
#define RUDIMENTS_TLS_H
#include <rudiments/private/websocketincludes.h>
class RUDIMENTS_DLLSPEC websocket : public securitycontext {
public:
websocket();
virtual ~websocket();
void setFileDescriptor(filedescriptor *fd);
filedescriptor *getFileDescriptor();
bool connect();
bool accept();
ssize_t read(void *buf, ssize_t size);
ssize_t write(const void *buf, ssize_t size);
bool ping(const unsigned char *buf, ssize_t size);
ssize_t pending();
bool close();
ssize_t getSizeMax();
#include <rudiments/private/websocket.h>
};
#endif
filedescriptor
Definition: filedescriptor.h:13
securitycontext
Definition: security.h:16
websocket
Definition: websocket.h:9
websocket::~websocket
virtual ~websocket()
websocket::pending
ssize_t pending()
websocket::ping
bool ping(const unsigned char *buf, ssize_t size)
websocket::accept
bool accept()
websocket::setFileDescriptor
void setFileDescriptor(filedescriptor *fd)
websocket::read
ssize_t read(void *buf, ssize_t size)
websocket::close
bool close()
websocket::getFileDescriptor
filedescriptor * getFileDescriptor()
websocket::write
ssize_t write(const void *buf, ssize_t size)
websocket::websocket
websocket()
websocket::getSizeMax
ssize_t getSizeMax()
websocket::connect
bool connect()