/* * CryptoPlayer.h * */ #ifndef NETWORKING_CRYPTOPLAYER_H_ #define NETWORKING_CRYPTOPLAYER_H_ #include "ssl_sockets.h" #include "Networking/Player.h" #include #include class CryptoPlayer : public MultiPlayer { PlainPlayer plaintext_player; boost::asio::ssl::context ctx; boost::asio::io_service io_service; vector*> senders; public: CryptoPlayer(const Names& Nms, int id_base=0); ~CryptoPlayer(); bool is_encrypted() { return true; } void pass_around_no_stats(octetStream& to_send, octetStream& to_receive, int offset) const; }; #endif /* NETWORKING_CRYPTOPLAYER_H_ */