#ifndef TTCPSOCKET_H #define TTCPSOCKET_H #include #include #include #include #include #include #include #include EXTERN_OBJECT_NAME(TTcpSocket); extern TTcpSocket *tcp_socket_table[16]; class TTcpSocket : public TSocket { private: PSOV3EncryptionTCP m_send_crypt; PSOV3EncryptionTCP m_recv_crypt; int m_is_encrypted; public: WEAK_FUNC TTcpSocket(TObject *parent = nullptr); virtual ~TTcpSocket(); virtual short open() override; virtual short close() override; virtual void recv() override; virtual short send(u8 *data) override; virtual int send(u8 *data, size_t size) override; short stat(); void some_stub(); int test_connection(); static void notify(short size, short sock_fd); PRIVATE_MEMBER_ACCESSORS(PSOV3EncryptionTCP, send_crypt); PRIVATE_MEMBER_ACCESSORS(PSOV3EncryptionTCP, recv_crypt); PRIVATE_MEMBER_ACCESSORS(int, is_encrypted); }; #endif