18 #if !defined(SOCKETBUFFER_H) 19 #define SOCKETBUFFER_H 21 #if defined(_WIN32) || defined(_WIN64) 24 #include <sys/socket.h> 28 #include <openssl/ssl.h> 31 #if defined(_WIN32) || defined(_WIN64) 60 #define SOCKETBUFFER_COMPLETE 0 61 #if !defined(SOCKET_ERROR) 62 #define SOCKET_ERROR -1 64 #define SOCKETBUFFER_INTERRUPTED -22
char * SocketBuffer_complete(int socket)
void SocketBuffer_interrupted(int socket, size_t actual_len)
int SocketBuffer_getQueuedChar(int socket, char *c)
pending_writes * SocketBuffer_getWrite(int socket)
char * SocketBuffer_getQueuedData(int socket, size_t bytes, size_t *actual_len)
int SocketBuffer_pendingWrite(int socket, int count, iobuf *iovecs, int *frees, size_t total, size_t bytes)
void SocketBuffer_cleanup(int socket)
pending_writes * SocketBuffer_updateWrite(int socket, char *topic, char *payload)
void SocketBuffer_queueChar(int socket, char c)
int SocketBuffer_initialize(void)
void SocketBuffer_terminate(void)
int SocketBuffer_writeComplete(int socket)