typedef struct {
int sfd;
FILE *wfd;
int bufSize;
int hdrSize;
struct iovec *vector;
uint8_t *buf;
int bytesRecv;
int bytesToFeed;
unsigned char sockaddr_storage[NI_MAXHOST];
}BrcmSocketCtx;
class XXX {
...
private:
bool open;
struct socketCtx;
};
XXX::XXX(bool status):open(status),socketCtx(){};