#pragma once // This is to wrap the platform specific kinds of connect/read/write. #include #include struct BaseConnection { static BaseConnection* Create(); static void Destroy(BaseConnection*&); bool Open(); bool Close(); bool Write(const void* data, size_t length); bool Read(void* data, size_t length); };