2024-12-01 19:35:24 +00:00
|
|
|
//| Copyright: (C) 2020-2024 Kevin Larke <contact AT larke DOT org>
|
|
|
|
//| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
|
2020-03-23 14:41:28 +00:00
|
|
|
#ifndef cwWebSockDecls_H
|
|
|
|
#define cwWebSockDecls_H
|
|
|
|
|
|
|
|
namespace cw
|
|
|
|
{
|
|
|
|
namespace websock
|
|
|
|
{
|
|
|
|
typedef struct protocol_str
|
|
|
|
{
|
|
|
|
const char* label; // unique label identifying this protocol
|
|
|
|
unsigned id; // unique id identifying this protocol
|
|
|
|
unsigned rcvBufByteN; // larger rcv'd packages will be broken into multiple parts
|
|
|
|
unsigned xmtBufByteN; // larger xmt'd packages are broken into multiple parts
|
|
|
|
} protocol_t;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
kConnectTId,
|
|
|
|
kDisconnectTId,
|
|
|
|
kMessageTId
|
|
|
|
} msgTypeId_t;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|