3 using STG::SGCP::CryptoProto;
5 CryptoProto::CryptoProto(const std::string& key, TransportProto* underlying)
6 : m_underlying(underlying)
10 CryptoProto::~CryptoProto()
15 void CryptoProto::connect(const std::string& address, uint16_t port)
17 m_underlying->connect(address, port);
20 ssize_t CryptoProto::write(const void* buf, size_t size)
23 return m_underlying->write(buf, size);
26 ssize_t CryptoProto::read(void* buf, size_t size)
29 return m_underlying->read(buf, size);