BBS2chProxyRawSocket.h 421 B

12345678910111213141516
  1. #pragma once
  2. #include "IBBS2chProxySocket.h"
  3. class BBS2chProxyRawSocket : public IBBS2chProxySocket {
  4. public:
  5. BBS2chProxyRawSocket(int sock);
  6. ~BBS2chProxyRawSocket();
  7. virtual int read(char *buffer, int length);
  8. virtual int readLine(char *buffer, int maxLength);
  9. virtual int write(const char *buffer, int length);
  10. virtual int writeString(const std::string &str);
  11. virtual void close(void);
  12. private:
  13. int socket;
  14. };