// comm_client.h #ifndef HAVE_COMM_CLIENT_H #define HAVE_COMM_CLIENT_H #include "common/config.h" #include "common/string.h" #include "common/log.h" class CommClient { public: CommClient(); ~CommClient(); const INT get_fd() { return fd; } void set_fd(const INT set) { fd = set; } void set_msg_size(const INT set) { msg_size = set; } void clear_in_buffer() { inbuf.clear(); } BOOL read_comm(); BOOL evaluate(); const STRING get_recipient() { return to; } const STRING get_message(); private: INT fd, msg_size; BUFFER inbuf; STRING from, mudname, to, message; }; #endif // HAVE_COMM_CLIENT_H