Rudiments
websocket.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_TLS_H
5#define RUDIMENTS_TLS_H
6
7#include <rudiments/private/websocketincludes.h>
8
10class RUDIMENTS_DLLSPEC websocket : public socketlayer {
11 public:
14
16 virtual ~websocket();
17
22
27
28
39 bool connect();
40
41
52 bool accept();
53
58 ssize_t read(void *buf, size_t size);
59
64 ssize_t write(const void *buf, size_t size);
65
70 bool ping(const byte_t *buf, size_t size);
71
75
78 bool close();
79
80
83 size_t getSizeMax();
84
85 #include <rudiments/private/websocket.h>
86};
87
88#endif
Definition avltree.h:11
Definition filedescriptor.h:13
Definition socketlayer.h:11
Definition websocket.h:10
virtual ~websocket()
ssize_t write(const void *buf, size_t size)
filedescriptor * getFileDescriptor()
size_t getSizeMax()
bool accept()
void setFileDescriptor(filedescriptor *fd)
bool close()
ssize_t read(void *buf, size_t size)
bool ping(const byte_t *buf, size_t size)
size_t getPendingSize()
bool connect()